.class public Lcom/nemustech/regina/Intercepter;
.super Landroid/widget/LinearLayout;
.source "Intercepter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/Intercepter$ScaleListener;,
        Lcom/nemustech/regina/Intercepter$ScrollRunnable;
    }
.end annotation


# static fields
.field private static final DEBUG_RECT:Z = false

.field static final DEBUG_TOUCH:Z = false

.field private static final DRAG_SCALE:F = 24.0f

.field private static final DRAG_SENSITIVITY:F = 10.0f

.field private static final DRAG_TO_BROWSER:I = 0x1

.field private static final DRAG_TO_ELEMENT:I = 0x0

.field private static final DRAG_TO_NONE:I = -0x1

.field private static final GUIDE_LINE_BOTH:I = 0x3

.field private static final GUIDE_LINE_HORZ:I = 0x2

.field private static final GUIDE_LINE_NONE:I = 0x0

.field private static final GUIDE_LINE_VERT:I = 0x1

.field private static final GUIDE_THRESHOLD:I = 0x14

.field private static LOG_FLAG:Z = false

.field private static final SCROLL_DELAY:I = 0x258

.field private static final SCROLL_DELAY_FAST:I = 0x32

.field private static final SCROLL_LEFT:I = 0x0

.field private static final SCROLL_OUTSIDE_ZONE:I = 0x0

.field private static final SCROLL_RIGHT:I = 0x1

.field private static final SCROLL_WAITING_IN_ZONE:I = 0x1

.field private static final SCROLL_ZONE:I = 0x32

.field private static final SCROLL_ZONE_SHORTCUT:I = 0x14

.field private static final SELECTED_ELEMENT_OPACITY:F = 0.7f

.field private static final SNAP_VELOCITY:I = 0x3e8

.field private static final TAG:Ljava/lang/String; = "Intercepter"

.field static final THRESHOLD_DRAG:F = 15.0f

.field static final THRESHOLD_FLICK:F = 25.0f

.field static final THRESHOLD_REPOSITION_WAIT_TIME:I = 0x12c

.field static final THRESHOLD_TIME:J = 0x96L

.field private static final TOUCH_AREA_ANDROID_WIDGET:I = 0x3

.field public static final TOUCH_AREA_ELEMENT:I = 0x2

.field public static final TOUCH_AREA_TAB:I = 0x1

.field public static final TOUCH_AREA_WORKSPACE:I = 0x0

.field private static final TOUCH_STATE_DOWN:I = 0xc

.field private static final TOUCH_STATE_MOVE:I = 0xd

.field private static final TOUCH_STATE_NONE:I = 0xa

.field private static final UNSELECTED_ELEMENT_OPACITY:F = 1.0f

.field public static final WS_BROWSER_AT_FLICK_ZONE:I = 0x1

.field public static final WS_BROWSER_AT_ORIGIN:I = 0x0

.field public static final WS_BROWSER_AT_SCROLL_ZONE:I = 0x2

.field static final WS_BROWSER_REPOSITION_TIME:I = 0x1f4

.field private static final WS_SCROLL_DELAY:I = 0x50

.field private static final WS_SCROLL_DELAY_FAST:I = 0x32


# instance fields
.field private mAccTouchX:F

.field private mAccTouchY:F

.field private mAndroidTouchHostView:Landroid/view/View;

.field private mAppLaunchingToast:Landroid/widget/Toast;

.field private mBrowsingWorkspaceStart:Z

.field private mClonedWS:[Lcom/nemustech/tiffany/world/TFHolder;

.field private mCreatingShortcutFromAppList:Z

.field private mDebugBound:Z

.field private mDebugMovedToTrash:Z

.field private mDebugRect:Landroid/graphics/Rect;

.field private mDetachElementBitmap:Landroid/graphics/Bitmap;

.field private mDragDirection:I

.field private mElementBoundPosition:I

.field private mElementRectTemp:Landroid/graphics/RectF;

.field private mElementXWithGuide:F

.field private mElementYWithGuide:F

.field private mFinalDragDisplacement:F

.field private mGuideGreenColor:I

.field private mGuideYellowColor:I

.field private final mHandler:Landroid/os/Handler;

.field private mImagePlater:Lcom/nemustech/regina/ImagePlater;

.field mLongClickListener:Landroid/view/View$OnLongClickListener;

.field private mLongPressMode:Z

.field private mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

.field private mMaximumVelocity:I

.field private mOldLongClickMoveX:F

.field private mOldLongClickMoveY:F

.field private mOldTouchX:F

.field private mOldTouchY:F

.field private mPaintGuideLine:Landroid/graphics/Paint;

.field private mPendingActionUpEvent:Z

.field private mPinchReference:F

.field private mPinchSpan:F

.field private mPrevWorkspaceIndex:I

.field private mReginaPref:Lcom/nemustech/regina/ReginaPreference;

.field private mResCare:Lcom/nemustech/regina/ResourceCare;

.field private mScaleDetector:Lcom/nemustech/regina/ReginaScaleGestureDetector;

.field private mScrollDelay:I

.field private mScrollRunnable:Lcom/nemustech/regina/Intercepter$ScrollRunnable;

.field private mScrollState:I

.field private mSecretPointChecker:Lcom/nemustech/regina/SecretPointChecker;

.field private mSelectedElement:Lcom/nemustech/regina/Element;

.field private mSelectedElementRect:Landroid/graphics/Rect;

.field private mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

.field private mTouchArea:I

.field private mTouchDownIndex:I

.field private mTouchDownX:F

.field public mTouchListener:Landroid/view/View$OnTouchListener;

.field private mTouchSlop:I

.field private mTouchState:I

.field private mVelocityTracker:Landroid/view/VelocityTracker;

.field private mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

.field private mWorkspaceAnimationListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

.field private mWorkspaceBrowserFirstMove:Z

.field private mWorkspaceBrowserInitialX:F

.field private mWorkspaceBrowserNeedFollowingEvent:Z

.field private mWorkspaceBrowserPrevStep:F

.field private mWorkspaceBrowserRepositionListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

.field private mWorkspaceBrowserStepSign:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 33
    const/4 v0, 0x0

    sput-boolean v0, Lcom/nemustech/regina/Intercepter;->LOG_FLAG:Z

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 144
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/nemustech/regina/Intercepter;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 145
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2
    .parameter "context"
    .parameter "attrs"

    .prologue
    const/4 v1, 0x0

    .line 148
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 100
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    .line 101
    iput v1, p0, Lcom/nemustech/regina/Intercepter;->mElementBoundPosition:I

    .line 110
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mElementRectTemp:Landroid/graphics/RectF;

    .line 111
    iput v1, p0, Lcom/nemustech/regina/Intercepter;->mScrollState:I

    .line 112
    new-instance v0, Lcom/nemustech/regina/Intercepter$ScrollRunnable;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/Intercepter$ScrollRunnable;-><init>(Lcom/nemustech/regina/Intercepter;)V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mScrollRunnable:Lcom/nemustech/regina/Intercepter$ScrollRunnable;

    .line 113
    const/16 v0, 0x258

    iput v0, p0, Lcom/nemustech/regina/Intercepter;->mScrollDelay:I

    .line 116
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mHandler:Landroid/os/Handler;

    .line 125
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mDebugRect:Landroid/graphics/Rect;

    .line 440
    new-instance v0, Lcom/nemustech/regina/Intercepter$1;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/Intercepter$1;-><init>(Lcom/nemustech/regina/Intercepter;)V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserRepositionListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    .line 497
    const/4 v0, -0x1

    iput v0, p0, Lcom/nemustech/regina/Intercepter;->mDragDirection:I

    .line 1147
    new-instance v0, Lcom/nemustech/regina/Intercepter$2;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/Intercepter$2;-><init>(Lcom/nemustech/regina/Intercepter;)V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mTouchListener:Landroid/view/View$OnTouchListener;

    .line 1314
    new-instance v0, Lcom/nemustech/regina/Intercepter$3;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/Intercepter$3;-><init>(Lcom/nemustech/regina/Intercepter;)V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mLongClickListener:Landroid/view/View$OnLongClickListener;

    .line 1675
    new-instance v0, Lcom/nemustech/regina/Intercepter$5;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/Intercepter$5;-><init>(Lcom/nemustech/regina/Intercepter;)V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mWorkspaceAnimationListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    .line 149
    invoke-direct {p0, p1}, Lcom/nemustech/regina/Intercepter;->init(Landroid/content/Context;)V

    .line 150
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/Intercepter;)Lcom/nemustech/regina/ReginaScaleGestureDetector;
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mScaleDetector:Lcom/nemustech/regina/ReginaScaleGestureDetector;

    return-object v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/Intercepter;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget v0, p0, Lcom/nemustech/regina/Intercepter;->mPinchReference:F

    return v0
.end method

.method static synthetic access$1002(Lcom/nemustech/regina/Intercepter;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mTouchDownX:F

    return p1
.end method

.method static synthetic access$102(Lcom/nemustech/regina/Intercepter;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mPinchReference:F

    return p1
.end method

.method static synthetic access$1102(Lcom/nemustech/regina/Intercepter;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput-boolean p1, p0, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserFirstMove:Z

    return p1
.end method

.method static synthetic access$1200(Lcom/nemustech/regina/Intercepter;)Lcom/nemustech/tiffany/world/TFObject;
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    return-object v0
.end method

.method static synthetic access$1202(Lcom/nemustech/regina/Intercepter;Lcom/nemustech/tiffany/world/TFObject;)Lcom/nemustech/tiffany/world/TFObject;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput-object p1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    return-object p1
.end method

.method static synthetic access$1300(Lcom/nemustech/regina/Intercepter;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget v0, p0, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    return v0
.end method

.method static synthetic access$1302(Lcom/nemustech/regina/Intercepter;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    return p1
.end method

.method static synthetic access$1400(Lcom/nemustech/regina/Intercepter;)Lcom/nemustech/regina/Element;
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    return-object v0
.end method

.method static synthetic access$1402(Lcom/nemustech/regina/Intercepter;Lcom/nemustech/regina/Element;)Lcom/nemustech/regina/Element;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput-object p1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    return-object p1
.end method

.method static synthetic access$1500(Lcom/nemustech/regina/Intercepter;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget v0, p0, Lcom/nemustech/regina/Intercepter;->mTouchSlop:I

    return v0
.end method

.method static synthetic access$1600(Lcom/nemustech/regina/Intercepter;)Landroid/view/View;
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$1602(Lcom/nemustech/regina/Intercepter;Landroid/view/View;)Landroid/view/View;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput-object p1, p0, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    return-object p1
.end method

.method static synthetic access$1700(Lcom/nemustech/regina/Intercepter;Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 30
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/Intercepter;->dispatchTouchEvent(Landroid/view/View;Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method

.method static synthetic access$1802(Lcom/nemustech/regina/Intercepter;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mElementBoundPosition:I

    return p1
.end method

.method static synthetic access$1900(Lcom/nemustech/regina/Intercepter;)Landroid/graphics/Rect;
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    return-object v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/Intercepter;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget v0, p0, Lcom/nemustech/regina/Intercepter;->mPinchSpan:F

    return v0
.end method

.method static synthetic access$2000()Z
    .locals 1

    .prologue
    .line 30
    sget-boolean v0, Lcom/nemustech/regina/Intercepter;->LOG_FLAG:Z

    return v0
.end method

.method static synthetic access$202(Lcom/nemustech/regina/Intercepter;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mPinchSpan:F

    return p1
.end method

.method static synthetic access$2102(Lcom/nemustech/regina/Intercepter;Landroid/widget/Toast;)Landroid/widget/Toast;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput-object p1, p0, Lcom/nemustech/regina/Intercepter;->mAppLaunchingToast:Landroid/widget/Toast;

    return-object p1
.end method

.method static synthetic access$2200(Lcom/nemustech/regina/Intercepter;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget-boolean v0, p0, Lcom/nemustech/regina/Intercepter;->mCreatingShortcutFromAppList:Z

    return v0
.end method

.method static synthetic access$2302(Lcom/nemustech/regina/Intercepter;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput-boolean p1, p0, Lcom/nemustech/regina/Intercepter;->mPendingActionUpEvent:Z

    return p1
.end method

.method static synthetic access$2400(Lcom/nemustech/regina/Intercepter;I)Ljava/lang/String;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    invoke-direct {p0, p1}, Lcom/nemustech/regina/Intercepter;->stateConverter(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$2600(Lcom/nemustech/regina/Intercepter;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget v0, p0, Lcom/nemustech/regina/Intercepter;->mPrevWorkspaceIndex:I

    return v0
.end method

.method static synthetic access$2602(Lcom/nemustech/regina/Intercepter;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mPrevWorkspaceIndex:I

    return p1
.end method

.method static synthetic access$2700(Lcom/nemustech/regina/Intercepter;ILcom/nemustech/regina/Element;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 30
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/Intercepter;->convertToElementObjectAll(ILcom/nemustech/regina/Element;)V

    return-void
.end method

.method static synthetic access$2802(Lcom/nemustech/regina/Intercepter;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mScrollState:I

    return p1
.end method

.method static synthetic access$2900(Lcom/nemustech/regina/Intercepter;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    invoke-direct {p0, p1}, Lcom/nemustech/regina/Intercepter;->prepareDrawingCacheInWorkspace(I)V

    return-void
.end method

.method static synthetic access$300(Lcom/nemustech/regina/Intercepter;)Lcom/nemustech/regina/ReginaLauncher;
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    return-object v0
.end method

.method static synthetic access$3000(Lcom/nemustech/regina/Intercepter;ILcom/nemustech/regina/Element;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 30
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/Intercepter;->convertToAnimationObjectAll(ILcom/nemustech/regina/Element;)V

    return-void
.end method

.method static synthetic access$400(Lcom/nemustech/regina/Intercepter;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget v0, p0, Lcom/nemustech/regina/Intercepter;->mTouchState:I

    return v0
.end method

.method static synthetic access$402(Lcom/nemustech/regina/Intercepter;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mTouchState:I

    return p1
.end method

.method static synthetic access$502(Lcom/nemustech/regina/Intercepter;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput-boolean p1, p0, Lcom/nemustech/regina/Intercepter;->mLongPressMode:Z

    return p1
.end method

.method static synthetic access$602(Lcom/nemustech/regina/Intercepter;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveX:F

    return p1
.end method

.method static synthetic access$700(Lcom/nemustech/regina/Intercepter;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget v0, p0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    return v0
.end method

.method static synthetic access$702(Lcom/nemustech/regina/Intercepter;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    return p1
.end method

.method static synthetic access$802(Lcom/nemustech/regina/Intercepter;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveY:F

    return p1
.end method

.method static synthetic access$900(Lcom/nemustech/regina/Intercepter;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    iget v0, p0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    return v0
.end method

.method static synthetic access$902(Lcom/nemustech/regina/Intercepter;F)F
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 30
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    return p1
.end method

.method private applistTouchHandler(Landroid/view/View;Landroid/view/MotionEvent;Z)Z
    .locals 20
    .parameter "v"
    .parameter "event"
    .parameter "longPressed"

    .prologue
    .line 938
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v12

    .line 940
    .local v12, locator:Lcom/nemustech/regina/ElementLocator;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v15

    .line 941
    .local v15, world:Lcom/nemustech/tiffany/world/TFWorld;
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v4

    .line 943
    .local v4, action:I
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getX()F

    move-result v9

    .line 944
    .local v9, eventX:F
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getY()F

    move-result v10

    .line 946
    .local v10, eventY:F
    move v0, v4

    and-int/lit16 v0, v0, 0xff

    move/from16 v16, v0

    packed-switch v16, :pswitch_data_0

    .line 1144
    .end local p1
    :cond_0
    :goto_0
    const/16 v16, 0x0

    return v16

    .line 949
    .restart local p1
    :pswitch_0
    if-eqz p3, :cond_4

    .line 950
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    if-eqz v16, :cond_0

    .line 951
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/Element;->canBeRepositioned()Z

    move-result v16

    const/16 v17, 0x1

    move/from16 v0, v16

    move/from16 v1, v17

    if-ne v0, v1, :cond_0

    .line 952
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->vibrateShort()V

    .line 953
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    const/16 v17, 0x0

    invoke-virtual/range {v16 .. v17}, Lcom/nemustech/regina/ReginaLauncher;->setTouchable(Z)V

    .line 954
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->getElementAppList()Lcom/nemustech/regina/ElementAppList;

    move-result-object v16

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v17, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    move/from16 v18, v0

    invoke-virtual/range {v16 .. v18}, Lcom/nemustech/regina/ElementAppList;->createShortcutFromAppList(FF)Lcom/nemustech/regina/Element;

    move-result-object v16

    move-object/from16 v0, v16

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    .line 956
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    if-eqz v16, :cond_3

    .line 957
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    monitor-enter v16

    .line 958
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v17

    move-object/from16 v0, v17

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

    .line 960
    move-object v14, v12

    .line 962
    .local v14, theLocator:Lcom/nemustech/regina/ElementLocator;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v17, v0

    const/16 v18, 0x1

    move-object v0, v14

    move-object/from16 v1, v17

    move/from16 v2, v18

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementLocator;->zoomElement(Lcom/nemustech/regina/Element;Z)V

    .line 971
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->switchToAnimationObject()Lcom/nemustech/tiffany/world/TFCustomPanel;

    .line 973
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v17

    move-object/from16 v0, p0

    move/from16 v1, v17

    invoke-direct {v0, v1}, Lcom/nemustech/regina/Intercepter;->prepareDrawingCacheInWorkspace(I)V

    .line 974
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v17

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    move/from16 v1, v17

    move-object/from16 v2, v18

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->convertToAnimationObjectAll(ILcom/nemustech/regina/Element;)V

    .line 976
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/ReginaLauncher;->getElementAppList()Lcom/nemustech/regina/ElementAppList;

    move-result-object v17

    const/16 v18, 0x1

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ElementAppList;->setLongPressedFlag(Z)V

    .line 977
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v17, v0

    const/16 v18, 0x1

    move-object/from16 v0, p0

    move-object/from16 v1, v17

    move/from16 v2, v18

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->turnElementTrackDrawing(Lcom/nemustech/regina/Element;Z)V

    .line 979
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v17

    const/16 v18, 0x1

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 980
    const/16 v17, 0x2

    move/from16 v0, v17

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    .line 981
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v13

    .line 982
    .local v13, object:Lcom/nemustech/tiffany/world/TFObject;
    move-object v0, v13

    instance-of v0, v0, Lcom/nemustech/tiffany/world/TFModel;

    move/from16 v17, v0

    if-eqz v17, :cond_1

    check-cast v13, Lcom/nemustech/tiffany/world/TFModel;

    .end local v13           #object:Lcom/nemustech/tiffany/world/TFObject;
    const/16 v17, 0x0

    move-object v0, v13

    move/from16 v1, v17

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFModel;->setTouchedFace(I)V

    .line 984
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v17

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->isUninstallableElement(Lcom/nemustech/regina/Element;)Z

    move-result v17

    if-eqz v17, :cond_2

    .line 985
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v17

    const/16 v18, 0x2

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->setTrashState(I)V

    .line 986
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v17

    const/16 v18, 0x2

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showTrash(I)V

    .line 992
    :goto_1
    const/16 v17, 0x1

    move/from16 v0, v17

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/Intercepter;->mCreatingShortcutFromAppList:Z

    .line 993
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/ReginaLauncher;->appListTransition()V

    .line 994
    const-string v17, "TOUCH"

    new-instance v18, Ljava/lang/StringBuilder;

    invoke-direct/range {v18 .. v18}, Ljava/lang/StringBuilder;-><init>()V

    const-string v19, "onLongClick - TOUCH_AREA_ELEMENT - "

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v19, v0

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    const/16 v19, 0x1

    invoke-static/range {v17 .. v19}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 995
    monitor-exit v16

    goto/16 :goto_0

    .end local v14           #theLocator:Lcom/nemustech/regina/ElementLocator;
    :catchall_0
    move-exception v17

    monitor-exit v16
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v17

    .line 988
    .restart local v14       #theLocator:Lcom/nemustech/regina/ElementLocator;
    :cond_2
    :try_start_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v17

    const/16 v18, 0x0

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->setTrashState(I)V

    .line 989
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v17

    const/16 v18, 0x0

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showTrash(I)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    .line 997
    .end local v14           #theLocator:Lcom/nemustech/regina/ElementLocator;
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    const/16 v17, 0x1

    invoke-virtual/range {v16 .. v17}, Lcom/nemustech/regina/ReginaLauncher;->setTouchable(Z)V

    .line 998
    const/16 v16, 0x2

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    goto/16 :goto_0

    .line 1008
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->getElementAppList()Lcom/nemustech/regina/ElementAppList;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ElementAppList;->getCurrentAppListIndex()I

    move-result v16

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchDownIndex:I

    .line 1009
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v16, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    move/from16 v17, v0

    invoke-virtual/range {v15 .. v17}, Lcom/nemustech/tiffany/world/TFWorld;->getHitModel(FF)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v16

    move-object/from16 v0, v16

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    .line 1011
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    if-eqz v16, :cond_7

    .line 1013
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getX()F

    move-result v17

    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getY()F

    move-result v18

    invoke-virtual/range {v16 .. v18}, Lcom/nemustech/regina/Element;->setElementTouchEventPos2D(FF)V

    .line 1014
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    instance-of v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;

    move/from16 v16, v0

    if-eqz v16, :cond_6

    .line 1015
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 p1, v0

    .end local p1
    check-cast p1, Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ElementAndroidWidget;->getHostView()Landroid/appwidget/AppWidgetHostView;

    move-result-object v11

    .line 1016
    .local v11, hostView:Landroid/view/View;
    if-eqz v11, :cond_5

    .line 1017
    move-object v0, v11

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    .line 1019
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v16, v0

    invoke-virtual {v11}, Landroid/view/View;->getLeft()I

    move-result v17

    move/from16 v0, v17

    int-to-float v0, v0

    move/from16 v17, v0

    sub-float v16, v16, v17

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    move/from16 v17, v0

    invoke-virtual {v11}, Landroid/view/View;->getTop()I

    move-result v18

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v18, v0

    sub-float v17, v17, v18

    move-object/from16 v0, p2

    move/from16 v1, v16

    move/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Landroid/view/MotionEvent;->setLocation(FF)V

    .line 1021
    move-object v0, v11

    move-object/from16 v1, p2

    invoke-virtual {v0, v1}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    .line 1022
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v16, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    move/from16 v17, v0

    move-object/from16 v0, p2

    move/from16 v1, v16

    move/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Landroid/view/MotionEvent;->setLocation(FF)V

    .line 1028
    .end local v11           #hostView:Landroid/view/View;
    :cond_5
    :goto_2
    const/16 v16, 0x2

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    .line 1029
    const-string v16, "TOUCH"

    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, "onDown - TOUCH_AREA_ELEMENT - "

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x1

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0

    .line 1026
    .restart local p1
    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    move-object/from16 v17, v0

    move-object/from16 v0, v16

    move-object/from16 v1, p2

    move-object/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    goto :goto_2

    .line 1032
    :cond_7
    const/16 v16, 0x0

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    .line 1033
    const-string v16, "TOUCH"

    const-string v17, "onDown - TOUCH_AREA_WORKSPACE - not really"

    const/16 v18, 0x1

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0

    .line 1040
    :pswitch_1
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v16, v0

    sub-float v6, v9, v16

    .line 1041
    .local v6, deltaX:F
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    move/from16 v16, v0

    sub-float v7, v10, v16

    .line 1042
    .local v7, deltaY:F
    move v0, v6

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mFinalDragDisplacement:F

    .line 1044
    if-eqz p3, :cond_9

    .line 1045
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    if-eqz v16, :cond_0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/Element;->canBeRepositioned()Z

    move-result v16

    const/16 v17, 0x1

    move/from16 v0, v16

    move/from16 v1, v17

    if-ne v0, v1, :cond_0

    .line 1046
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveX:F

    move/from16 v16, v0

    sub-float v6, v9, v16

    .line 1047
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveY:F

    move/from16 v16, v0

    sub-float v7, v10, v16

    .line 1048
    const-string v16, "Intercepter"

    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {v4}, Lcom/nemustech/regina/RLog;->touchEventToString(I)Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, " TOUCH_STATE_ELEMENT_LONGCLICK"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, " deltaX="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move v1, v6

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1051
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    move v0, v7

    neg-float v0, v0

    move/from16 v17, v0

    move-object v0, v12

    move-object/from16 v1, v16

    move v2, v6

    move/from16 v3, v17

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementLocator;->elementMoveOnZoom(Lcom/nemustech/regina/Element;FF)V

    .line 1053
    const-string v16, "Intercepter"

    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, "mSelectedElement location x="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/Element;->getX()F

    move-result v18

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, " y="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/Element;->getY()F

    move-result v18

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v17

    const-string v18, " z="

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v18, v0

    invoke-virtual/range {v18 .. v18}, Lcom/nemustech/regina/Element;->getZ()F

    move-result v18

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    invoke-static/range {v16 .. v17}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1057
    move v0, v9

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveX:F

    .line 1058
    move v0, v10

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveY:F

    .line 1060
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v8

    .line 1061
    .local v8, elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    move v0, v9

    float-to-int v0, v0

    move/from16 v16, v0

    move v0, v10

    float-to-int v0, v0

    move/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v18, v0

    move-object v0, v8

    move/from16 v1, v16

    move/from16 v2, v17

    move-object/from16 v3, v18

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showElementStatus(IILcom/nemustech/regina/Element;)V

    .line 1071
    invoke-virtual {v8}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->getBandAidAreaBound()Landroid/graphics/Rect;

    move-result-object v16

    move v0, v9

    float-to-int v0, v0

    move/from16 v17, v0

    move v0, v10

    float-to-int v0, v0

    move/from16 v18, v0

    invoke-virtual/range {v16 .. v18}, Landroid/graphics/Rect;->contains(II)Z

    move-result v16

    if-eqz v16, :cond_8

    .line 1072
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Rect;->setEmpty()V

    .line 1078
    :goto_3
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mScrollState:I

    move/from16 v16, v0

    if-nez v16, :cond_0

    .line 1079
    move-object/from16 v0, p0

    move v1, v9

    invoke-direct {v0, v1}, Lcom/nemustech/regina/Intercepter;->scrollWorkspaceDelayed(F)V

    goto/16 :goto_0

    .line 1074
    :cond_8
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/Intercepter;->updateElementTrackRect()V

    .line 1075
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/Intercepter;->invalidate()V

    goto :goto_3

    .line 1085
    .end local v8           #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    :cond_9
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    if-eqz v16, :cond_a

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    instance-of v0, v0, Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move/from16 v16, v0

    if-eqz v16, :cond_a

    .line 1086
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    move-object/from16 v17, v0

    move-object/from16 v0, v16

    move-object/from16 v1, p2

    move-object/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    goto/16 :goto_0

    .line 1088
    :cond_a
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->getElementAppList()Lcom/nemustech/regina/ElementAppList;

    move-result-object v16

    move-object/from16 v0, v16

    move v1, v6

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementAppList;->scrollAppList(F)V

    goto/16 :goto_0

    .line 1095
    .end local v6           #deltaX:F
    .end local v7           #deltaY:F
    :pswitch_2
    if-nez p3, :cond_b

    .line 1096
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->getElementAppList()Lcom/nemustech/regina/ElementAppList;

    move-result-object v5

    .line 1097
    .local v5, appList:Lcom/nemustech/regina/ElementAppList;
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mTouchState:I

    move/from16 v16, v0

    const/16 v17, 0xc

    move/from16 v0, v16

    move/from16 v1, v17

    if-ne v0, v1, :cond_c

    .line 1135
    :goto_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaPreference;->isAppListScrollEffectOn()Z

    move-result v16

    if-eqz v16, :cond_b

    .line 1136
    const/16 v16, 0x1

    move-object v0, v5

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementAppList;->returnToOriginAngle(Z)V

    .line 1140
    .end local v5           #appList:Lcom/nemustech/regina/ElementAppList;
    :cond_b
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    if-eqz v16, :cond_0

    .line 1141
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v16, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    move-object/from16 v17, v0

    move-object/from16 v0, v16

    move-object/from16 v1, p2

    move-object/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    goto/16 :goto_0

    .line 1117
    .restart local v5       #appList:Lcom/nemustech/regina/ElementAppList;
    :cond_c
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mTouchState:I

    move/from16 v16, v0

    const/16 v17, 0xd

    move/from16 v0, v16

    move/from16 v1, v17

    if-ne v0, v1, :cond_f

    .line 1120
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mTouchDownIndex:I

    move/from16 v16, v0

    invoke-virtual {v5}, Lcom/nemustech/regina/ElementAppList;->getCurrentAppListIndex()I

    move-result v17

    move/from16 v0, v16

    move/from16 v1, v17

    if-ne v0, v1, :cond_e

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mFinalDragDisplacement:F

    move/from16 v16, v0

    invoke-static/range {v16 .. v16}, Ljava/lang/Math;->abs(F)F

    move-result v16

    const/high16 v17, 0x4120

    cmpl-float v16, v16, v17

    if-ltz v16, :cond_e

    .line 1122
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mFinalDragDisplacement:F

    move/from16 v16, v0

    const/16 v17, 0x0

    cmpg-float v16, v16, v17

    if-gez v16, :cond_d

    .line 1123
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    const/16 v17, 0x1

    const/16 v18, 0x0

    invoke-virtual/range {v16 .. v18}, Lcom/nemustech/regina/ReginaLauncher;->scrollAppListToDir(ILcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    goto :goto_4

    .line 1125
    :cond_d
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    const/16 v17, -0x1

    const/16 v18, 0x0

    invoke-virtual/range {v16 .. v18}, Lcom/nemustech/regina/ReginaLauncher;->scrollAppListToDir(ILcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    goto/16 :goto_4

    .line 1129
    :cond_e
    invoke-virtual {v5}, Lcom/nemustech/regina/ElementAppList;->repositionAppList()V

    goto/16 :goto_4

    .line 1132
    :cond_f
    invoke-virtual {v5}, Lcom/nemustech/regina/ElementAppList;->repositionAppList()V

    goto/16 :goto_4

    .line 946
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method

.method private convertToAnimationObjectAll(ILcom/nemustech/regina/Element;)V
    .locals 2
    .parameter "wsIndex"
    .parameter "exceptElement"

    .prologue
    .line 1447
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    .line 1448
    .local v0, ws:Lcom/nemustech/regina/RGWorkspace;
    const/4 v1, 0x0

    invoke-virtual {v0, v1, p2}, Lcom/nemustech/regina/RGWorkspace;->convertToAnimationObjects(ZLcom/nemustech/regina/Element;)V

    .line 1455
    return-void
.end method

.method private convertToElementObjectAll(ILcom/nemustech/regina/Element;)V
    .locals 2
    .parameter "wsIndex"
    .parameter "exceptElement"

    .prologue
    .line 1442
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    .line 1443
    .local v0, ws:Lcom/nemustech/regina/RGWorkspace;
    const/4 v1, 0x0

    invoke-virtual {v0, v1, p2}, Lcom/nemustech/regina/RGWorkspace;->convertToElementObjects(ZLcom/nemustech/regina/Element;)V

    .line 1444
    return-void
.end method

.method private dispatchTouchEvent(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 2
    .parameter "v"
    .parameter "event"

    .prologue
    .line 1291
    const/4 v0, 0x0

    .line 1293
    .local v0, bHandled:Z
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    .line 1311
    :goto_0
    :pswitch_0
    return v0

    .line 1297
    :pswitch_1
    invoke-virtual {p0}, Lcom/nemustech/regina/Intercepter;->isLongClick()Z

    move-result v1

    invoke-direct {p0, p1, p2, v1}, Lcom/nemustech/regina/Intercepter;->workspaceTouchHandler(Landroid/view/View;Landroid/view/MotionEvent;Z)Z

    move-result v0

    .line 1298
    goto :goto_0

    .line 1301
    :pswitch_2
    invoke-virtual {p0}, Lcom/nemustech/regina/Intercepter;->isLongClick()Z

    move-result v1

    invoke-direct {p0, p1, p2, v1}, Lcom/nemustech/regina/Intercepter;->workspaceSwitcherTouchHandler(Landroid/view/View;Landroid/view/MotionEvent;Z)Z

    move-result v0

    .line 1302
    goto :goto_0

    .line 1304
    :pswitch_3
    invoke-virtual {p0}, Lcom/nemustech/regina/Intercepter;->isLongClick()Z

    move-result v1

    invoke-direct {p0, p1, p2, v1}, Lcom/nemustech/regina/Intercepter;->applistTouchHandler(Landroid/view/View;Landroid/view/MotionEvent;Z)Z

    move-result v0

    .line 1305
    goto :goto_0

    .line 1307
    :pswitch_4
    invoke-virtual {p0}, Lcom/nemustech/regina/Intercepter;->isLongClick()Z

    move-result v1

    invoke-direct {p0, p1, p2, v1}, Lcom/nemustech/regina/Intercepter;->workspaceBrowserTouchHandler(Landroid/view/View;Landroid/view/MotionEvent;Z)Z

    move-result v0

    goto :goto_0

    .line 1293
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_0
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_1
    .end packed-switch
.end method

.method private drawElementGuide(ZLandroid/graphics/Canvas;)I
    .locals 24
    .parameter "draw"
    .parameter "canvas"

    .prologue
    .line 1542
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object v3, v0

    invoke-static {v3}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v23

    .line 1543
    .local v23, screenWidth:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object v3, v0

    invoke-static {v3}, Lcom/nemustech/regina/RUtils;->getScreenHeightAvailable(Landroid/content/Context;)I

    move-result v22

    .line 1544
    .local v22, screenHeight:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object v3, v0

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->getHeight2D()I

    move-result v14

    .line 1545
    .local v14, controlBtnHeight:I
    const/16 v16, 0x0

    .line 1546
    .local v16, drawVertLine:Z
    const/4 v15, 0x0

    .line 1547
    .local v15, drawHorzLine:Z
    const/4 v9, 0x1

    .line 1548
    .local v9, GAP:I
    const/16 v21, 0x0

    .line 1550
    .local v21, result:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    move-object v3, v0

    invoke-virtual {v3}, Landroid/graphics/Rect;->isEmpty()Z

    move-result v3

    if-nez v3, :cond_b

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object v3, v0

    invoke-virtual {v3}, Lcom/nemustech/regina/Element;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v3

    if-eqz v3, :cond_b

    .line 1551
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    move-object v3, v0

    invoke-virtual {v3}, Landroid/graphics/Rect;->centerX()I

    move-result v12

    .line 1552
    .local v12, compareCenterX:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    move-object v3, v0

    invoke-virtual {v3}, Landroid/graphics/Rect;->centerY()I

    move-result v13

    .line 1557
    .local v13, compareCenterY:I
    const/4 v3, 0x1

    move/from16 v0, p1

    move v1, v3

    if-ne v0, v1, :cond_0

    .line 1558
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v3, v0

    invoke-virtual {v3}, Landroid/graphics/Paint;->reset()V

    .line 1559
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v3, v0

    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 1560
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v3, v0

    sget-object v4, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 1561
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v3, v0

    const/high16 v4, 0x4040

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 1562
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v3, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mGuideYellowColor:I

    move v4, v0

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setColor(I)V

    .line 1565
    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object v3, v0

    invoke-virtual {v3}, Lcom/nemustech/regina/Element;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/RGWorkspace;->getElementList()Ljava/util/ArrayList;

    move-result-object v18

    .line 1566
    .local v18, elementArrList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/Element;>;"
    invoke-virtual/range {v18 .. v18}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v19

    .local v19, i$:Ljava/util/Iterator;
    :cond_1
    :goto_0
    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_7

    invoke-interface/range {v19 .. v19}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v17

    check-cast v17, Lcom/nemustech/regina/Element;

    .line 1567
    .local v17, e:Lcom/nemustech/regina/Element;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object v3, v0

    instance-of v3, v3, Lcom/nemustech/regina/ElementFolder;

    if-nez v3, :cond_2

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object v3, v0

    instance-of v3, v3, Lcom/nemustech/regina/ElementShortcut;

    if-eqz v3, :cond_1

    :cond_2
    move-object/from16 v0, v17

    instance-of v0, v0, Lcom/nemustech/regina/ElementShortcut;

    move v3, v0

    if-nez v3, :cond_3

    move-object/from16 v0, v17

    instance-of v0, v0, Lcom/nemustech/regina/ElementFolder;

    move v3, v0

    if-eqz v3, :cond_1

    .line 1569
    :cond_3
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getLeft2D()I

    move-result v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getWidth2D()I

    move-result v4

    div-int/lit8 v4, v4, 0x2

    add-int v10, v3, v4

    .line 1570
    .local v10, centerX:I
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getTop2D()I

    move-result v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getHeight2D()I

    move-result v4

    div-int/lit8 v4, v4, 0x2

    add-int v11, v3, v4

    .line 1576
    .local v11, centerY:I
    const/4 v3, 0x1

    sub-int v3, v10, v3

    if-lt v12, v3, :cond_5

    add-int/lit8 v3, v10, 0x1

    if-gt v12, v3, :cond_5

    .line 1577
    const/4 v3, 0x1

    move/from16 v0, p1

    move v1, v3

    if-ne v0, v1, :cond_4

    .line 1578
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getLeft2D()I

    move-result v3

    int-to-float v4, v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getTop2D()I

    move-result v3

    int-to-float v5, v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getLeft2D()I

    move-result v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getWidth2D()I

    move-result v6

    add-int/2addr v3, v6

    int-to-float v6, v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getTop2D()I

    move-result v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getHeight2D()I

    move-result v7

    add-int/2addr v3, v7

    int-to-float v7, v3

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v3, p2

    invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 1581
    :cond_4
    const/16 v16, 0x1

    .line 1583
    :cond_5
    const/4 v3, 0x1

    sub-int v3, v11, v3

    if-lt v13, v3, :cond_1

    add-int/lit8 v3, v11, 0x1

    if-gt v13, v3, :cond_1

    .line 1584
    const/4 v3, 0x1

    move/from16 v0, p1

    move v1, v3

    if-ne v0, v1, :cond_6

    .line 1585
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getLeft2D()I

    move-result v3

    int-to-float v4, v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getTop2D()I

    move-result v3

    int-to-float v5, v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getLeft2D()I

    move-result v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getWidth2D()I

    move-result v6

    add-int/2addr v3, v6

    int-to-float v6, v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getTop2D()I

    move-result v3

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/regina/Element;->getHeight2D()I

    move-result v7

    add-int/2addr v3, v7

    int-to-float v7, v3

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v3, p2

    invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 1588
    :cond_6
    const/4 v15, 0x1

    goto/16 :goto_0

    .line 1593
    .end local v10           #centerX:I
    .end local v11           #centerY:I
    .end local v17           #e:Lcom/nemustech/regina/Element;
    :cond_7
    const/4 v3, 0x1

    move/from16 v0, p1

    move v1, v3

    if-ne v0, v1, :cond_a

    .line 1594
    if-eqz v16, :cond_8

    .line 1595
    int-to-float v4, v12

    const/4 v5, 0x0

    int-to-float v6, v12

    sub-int v3, v22, v14

    int-to-float v7, v3

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v3, p2

    invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 1597
    :cond_8
    if-eqz v15, :cond_9

    .line 1598
    const/4 v4, 0x0

    int-to-float v5, v13

    move/from16 v0, v23

    int-to-float v0, v0

    move v6, v0

    int-to-float v7, v13

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v3, p2

    invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 1601
    :cond_9
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v3, v0

    const/high16 v4, 0x4040

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 1602
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v3, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mGuideGreenColor:I

    move v4, v0

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setColor(I)V

    .line 1603
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    move-object v3, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v4, v0

    move-object/from16 v0, p2

    move-object v1, v3

    move-object v2, v4

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1606
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object v3, v0

    instance-of v3, v3, Lcom/nemustech/regina/ElementShortcut;

    if-eqz v3, :cond_a

    .line 1607
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mResCare:Lcom/nemustech/regina/ResourceCare;

    move-object v3, v0

    const v4, 0x7f060002

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v20

    .line 1612
    .local v20, margin:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    move-object v3, v0

    iget v3, v3, Landroid/graphics/Rect;->left:I

    move v0, v3

    move/from16 v1, v20

    if-gt v0, v1, :cond_c

    .line 1613
    move/from16 v0, v20

    int-to-float v0, v0

    move v4, v0

    const/4 v5, 0x0

    move/from16 v0, v20

    int-to-float v0, v0

    move v6, v0

    move/from16 v0, v22

    int-to-float v0, v0

    move v7, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v3, p2

    invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 1620
    .end local v20           #margin:I
    :cond_a
    :goto_1
    const/4 v3, 0x1

    move/from16 v0, v16

    move v1, v3

    if-ne v0, v1, :cond_d

    const/4 v3, 0x1

    if-ne v15, v3, :cond_d

    .line 1621
    const/16 v21, 0x3

    .line 1631
    .end local v12           #compareCenterX:I
    .end local v13           #compareCenterY:I
    .end local v18           #elementArrList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/Element;>;"
    .end local v19           #i$:Ljava/util/Iterator;
    :cond_b
    :goto_2
    return v21

    .line 1614
    .restart local v12       #compareCenterX:I
    .restart local v13       #compareCenterY:I
    .restart local v18       #elementArrList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/Element;>;"
    .restart local v19       #i$:Ljava/util/Iterator;
    .restart local v20       #margin:I
    :cond_c
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    move-object v3, v0

    iget v3, v3, Landroid/graphics/Rect;->right:I

    add-int/lit8 v3, v3, 0x1

    sub-int v4, v23, v20

    if-lt v3, v4, :cond_a

    .line 1615
    sub-int v3, v23, v20

    int-to-float v4, v3

    const/4 v5, 0x0

    sub-int v3, v23, v20

    int-to-float v6, v3

    move/from16 v0, v22

    int-to-float v0, v0

    move v7, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v3, p2

    invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    goto :goto_1

    .line 1623
    .end local v20           #margin:I
    :cond_d
    const/4 v3, 0x1

    move/from16 v0, v16

    move v1, v3

    if-ne v0, v1, :cond_e

    .line 1624
    const/16 v21, 0x1

    goto :goto_2

    .line 1625
    :cond_e
    const/4 v3, 0x1

    if-ne v15, v3, :cond_b

    .line 1626
    const/16 v21, 0x2

    goto :goto_2
.end method

.method private init(Landroid/content/Context;)V
    .locals 4
    .parameter "context"

    .prologue
    const/4 v2, 0x1

    .line 1494
    const/16 v1, 0xa

    iput v1, p0, Lcom/nemustech/regina/Intercepter;->mTouchState:I

    .line 1496
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1, v2}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v1, p0, Lcom/nemustech/regina/Intercepter;->mPaintGuideLine:Landroid/graphics/Paint;

    .line 1498
    invoke-virtual {p0, v2}, Lcom/nemustech/regina/Intercepter;->setLongClickable(Z)V

    .line 1499
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mLongClickListener:Landroid/view/View$OnLongClickListener;

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/Intercepter;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    .line 1500
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mTouchListener:Landroid/view/View$OnTouchListener;

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/Intercepter;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 1502
    invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    .line 1503
    .local v0, configuration:Landroid/view/ViewConfiguration;
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/Intercepter;->mMaximumVelocity:I

    .line 1504
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/Intercepter;->mTouchSlop:I

    .line 1506
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/nemustech/regina/Intercepter;->mDebugBound:Z

    .line 1507
    new-instance v1, Lcom/nemustech/regina/ReginaScaleGestureDetector;

    new-instance v2, Lcom/nemustech/regina/Intercepter$ScaleListener;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v3}, Lcom/nemustech/regina/Intercepter$ScaleListener;-><init>(Lcom/nemustech/regina/Intercepter;Lcom/nemustech/regina/Intercepter$1;)V

    invoke-direct {v1, p1, v2}, Lcom/nemustech/regina/ReginaScaleGestureDetector;-><init>(Landroid/content/Context;Lcom/nemustech/regina/ReginaScaleGestureDetector$OnScaleGestureListener;)V

    iput-object v1, p0, Lcom/nemustech/regina/Intercepter;->mScaleDetector:Lcom/nemustech/regina/ReginaScaleGestureDetector;

    .line 1509
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f050016

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/Intercepter;->mGuideGreenColor:I

    .line 1510
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f050017

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/Intercepter;->mGuideYellowColor:I

    .line 1511
    return-void
.end method

.method private isPageHorzScrollOver(F)Z
    .locals 4
    .parameter "endX"

    .prologue
    .line 1515
    const/4 v0, 0x0

    .line 1516
    .local v0, result:Z
    iget-object v2, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v2}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v1

    .line 1518
    .local v1, screen_width:I
    iget v2, p0, Lcom/nemustech/regina/Intercepter;->mTouchDownX:F

    sub-float v2, p1, v2

    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v2

    div-int/lit8 v3, v1, 0x2

    int-to-float v3, v3

    cmpl-float v2, v2, v3

    if-lez v2, :cond_0

    .line 1519
    const/4 v0, 0x1

    .line 1522
    :cond_0
    return v0
.end method

.method private prepareDrawingCacheInWorkspace(I)V
    .locals 9
    .parameter "wsIndex"

    .prologue
    .line 1748
    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v6

    invoke-virtual {v6, p1}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v5

    .line 1750
    .local v5, ws:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v5}, Lcom/nemustech/regina/RGWorkspace;->getElementList()Ljava/util/ArrayList;

    move-result-object v3

    .line 1751
    .local v3, elementArrList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/Element;>;"
    const-string v6, "Intercepter"

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "updatePanelsInWorkspace() elementArrList size="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    sget-boolean v8, Lcom/nemustech/regina/Intercepter;->LOG_FLAG:Z

    invoke-static {v6, v7, v8}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1752
    invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v4

    .local v4, i$:Ljava/util/Iterator;
    :cond_0
    :goto_0
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_1

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/nemustech/regina/Element;

    .line 1753
    .local v2, e:Lcom/nemustech/regina/Element;
    instance-of v6, v2, Lcom/nemustech/regina/ElementAndroidWidget;

    if-eqz v6, :cond_0

    .line 1754
    move-object v0, v2

    check-cast v0, Lcom/nemustech/regina/ElementAndroidWidget;

    move-object v1, v0

    .line 1755
    .local v1, aElement:Lcom/nemustech/regina/ElementAndroidWidget;
    invoke-virtual {v1}, Lcom/nemustech/regina/ElementAndroidWidget;->prepareDrawingCache()V

    goto :goto_0

    .line 1758
    .end local v1           #aElement:Lcom/nemustech/regina/ElementAndroidWidget;
    .end local v2           #e:Lcom/nemustech/regina/Element;
    :cond_1
    return-void
.end method

.method private scrollWorkspaceDelayed(F)V
    .locals 11
    .parameter "eventX"

    .prologue
    const/4 v10, 0x1

    .line 1359
    const/4 v3, 0x0

    .line 1360
    .local v3, endlessMode:Z
    const/4 v0, 0x0

    .line 1361
    .local v0, allowScroll:Z
    const/4 v2, 0x0

    .line 1362
    .local v2, direction:I
    const/16 v5, 0x32

    .line 1364
    .local v5, scrollZone:I
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v7, :cond_1

    .line 1365
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    instance-of v7, v7, Lcom/nemustech/regina/ElementShortcut;

    if-nez v7, :cond_0

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    instance-of v7, v7, Lcom/nemustech/regina/ElementFolder;

    if-eqz v7, :cond_4

    .line 1366
    :cond_0
    const/16 v5, 0x14

    .line 1372
    :cond_1
    :goto_0
    int-to-float v7, v5

    cmpg-float v7, p1, v7

    if-gez v7, :cond_7

    .line 1373
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v4

    .line 1374
    .local v4, locator:Lcom/nemustech/regina/ElementLocator;
    invoke-virtual {v4}, Lcom/nemustech/regina/ElementLocator;->isWorkspaceEndlessMode()Z

    move-result v3

    .line 1375
    invoke-virtual {v4}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v1

    .line 1376
    .local v1, curWsIndex:I
    if-nez v3, :cond_6

    .line 1377
    if-lez v1, :cond_5

    .line 1378
    const/4 v0, 0x1

    .line 1379
    const/4 v2, 0x0

    .line 1409
    .end local v1           #curWsIndex:I
    .end local v4           #locator:Lcom/nemustech/regina/ElementLocator;
    :cond_2
    :goto_1
    if-ne v0, v10, :cond_3

    .line 1410
    if-ne v0, v10, :cond_3

    .line 1411
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v7

    iget-object v8, p0, Lcom/nemustech/regina/Intercepter;->mWorkspaceAnimationListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    invoke-virtual {v7, v8}, Lcom/nemustech/regina/ElementLocator;->setWorkspaceAnimationListener(Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 1412
    iput v10, p0, Lcom/nemustech/regina/Intercepter;->mScrollState:I

    .line 1413
    const-string v7, "Intercepter"

    const-string v8, "ACTION_MOVE Set mScrollState=SCROLL_WAITING_IN_ZONE"

    invoke-static {v7, v8, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1414
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mScrollRunnable:Lcom/nemustech/regina/Intercepter$ScrollRunnable;

    invoke-virtual {v7, v2}, Lcom/nemustech/regina/Intercepter$ScrollRunnable;->setDirection(I)V

    .line 1415
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mScrollRunnable:Lcom/nemustech/regina/Intercepter$ScrollRunnable;

    iget v8, p0, Lcom/nemustech/regina/Intercepter;->mScrollDelay:I

    const/16 v9, 0x32

    if-ne v8, v9, :cond_a

    move v8, v10

    :goto_2
    invoke-virtual {v7, v8}, Lcom/nemustech/regina/Intercepter$ScrollRunnable;->setFastScrolling(Z)V

    .line 1416
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mScrollRunnable:Lcom/nemustech/regina/Intercepter$ScrollRunnable;

    iget v8, p0, Lcom/nemustech/regina/Intercepter;->mScrollDelay:I

    int-to-long v8, v8

    invoke-virtual {p0, v7, v8, v9}, Lcom/nemustech/regina/Intercepter;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 1419
    :cond_3
    return-void

    .line 1368
    :cond_4
    const/16 v5, 0x32

    goto :goto_0

    .line 1381
    .restart local v1       #curWsIndex:I
    .restart local v4       #locator:Lcom/nemustech/regina/ElementLocator;
    :cond_5
    invoke-virtual {v4}, Lcom/nemustech/regina/ElementLocator;->isWorkspaceEndlessMode()Z

    move-result v7

    if-nez v7, :cond_2

    .line 1382
    invoke-virtual {v4, v10}, Lcom/nemustech/regina/ElementLocator;->toastReachedEndWorkspace(I)V

    goto :goto_1

    .line 1386
    :cond_6
    const/4 v0, 0x1

    .line 1387
    const/4 v2, 0x0

    goto :goto_1

    .line 1389
    .end local v1           #curWsIndex:I
    .end local v4           #locator:Lcom/nemustech/regina/ElementLocator;
    :cond_7
    invoke-virtual {p0}, Lcom/nemustech/regina/Intercepter;->getWidth()I

    move-result v7

    sub-int/2addr v7, v5

    int-to-float v7, v7

    cmpl-float v7, p1, v7

    if-lez v7, :cond_2

    .line 1390
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v4

    .line 1391
    .restart local v4       #locator:Lcom/nemustech/regina/ElementLocator;
    invoke-virtual {v4}, Lcom/nemustech/regina/ElementLocator;->isWorkspaceEndlessMode()Z

    move-result v3

    .line 1392
    invoke-virtual {v4}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v1

    .line 1393
    .restart local v1       #curWsIndex:I
    invoke-virtual {v4}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v6

    .line 1394
    .local v6, wsCount:I
    if-nez v3, :cond_9

    .line 1395
    sub-int v7, v6, v10

    if-ge v1, v7, :cond_8

    .line 1396
    const/4 v0, 0x1

    .line 1397
    const/4 v2, 0x1

    goto :goto_1

    .line 1399
    :cond_8
    invoke-virtual {v4}, Lcom/nemustech/regina/ElementLocator;->isWorkspaceEndlessMode()Z

    move-result v7

    if-nez v7, :cond_2

    .line 1400
    const/4 v7, -0x1

    invoke-virtual {v4, v7}, Lcom/nemustech/regina/ElementLocator;->toastReachedEndWorkspace(I)V

    goto :goto_1

    .line 1404
    :cond_9
    const/4 v0, 0x1

    .line 1405
    const/4 v2, 0x1

    goto :goto_1

    .line 1415
    .end local v1           #curWsIndex:I
    .end local v4           #locator:Lcom/nemustech/regina/ElementLocator;
    .end local v6           #wsCount:I
    :cond_a
    const/4 v8, 0x0

    goto :goto_2
.end method

.method private showElementGuide(FF)V
    .locals 8
    .parameter "deltaX"
    .parameter "deltaY"

    .prologue
    const/4 v7, 0x3

    const/high16 v6, 0x41a0

    const/4 v5, 0x0

    .line 456
    invoke-direct {p0}, Lcom/nemustech/regina/Intercepter;->updateElementTrackRect()V

    .line 457
    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-direct {p0, v3, v4}, Lcom/nemustech/regina/Intercepter;->drawElementGuide(ZLandroid/graphics/Canvas;)I

    move-result v2

    .line 458
    .local v2, status:I
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mElementXWithGuide:F

    .line 459
    neg-float v3, p2

    iput v3, p0, Lcom/nemustech/regina/Intercepter;->mElementYWithGuide:F

    .line 460
    iget-object v3, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    invoke-virtual {v3}, Landroid/graphics/Rect;->isEmpty()Z

    move-result v3

    if-nez v3, :cond_3

    .line 461
    const/4 v3, 0x1

    if-eq v2, v3, :cond_0

    if-ne v2, v7, :cond_1

    .line 462
    :cond_0
    iget v3, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchX:F

    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v0

    .line 463
    .local v0, absAccTouchX:F
    cmpg-float v3, v0, v6

    if-gtz v3, :cond_4

    .line 464
    iput v5, p0, Lcom/nemustech/regina/Intercepter;->mElementXWithGuide:F

    .line 465
    iget v3, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchX:F

    add-float/2addr v3, p1

    iput v3, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchX:F

    .line 476
    .end local v0           #absAccTouchX:F
    :cond_1
    :goto_0
    const/4 v3, 0x2

    if-eq v2, v3, :cond_2

    if-ne v2, v7, :cond_3

    .line 477
    :cond_2
    iget v3, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchY:F

    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v1

    .line 478
    .local v1, absAccTouchY:F
    iget v3, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchY:F

    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v3

    cmpg-float v3, v3, v6

    if-gtz v3, :cond_6

    .line 479
    iput v5, p0, Lcom/nemustech/regina/Intercepter;->mElementYWithGuide:F

    .line 480
    iget v3, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchY:F

    neg-float v4, p2

    add-float/2addr v3, v4

    iput v3, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchY:F

    .line 491
    .end local v1           #absAccTouchY:F
    :cond_3
    :goto_1
    return-void

    .line 467
    .restart local v0       #absAccTouchX:F
    :cond_4
    cmpl-float v3, v0, v5

    if-lez v3, :cond_5

    .line 468
    iget v3, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchX:F

    add-float/2addr v3, p1

    iput v3, p0, Lcom/nemustech/regina/Intercepter;->mElementXWithGuide:F

    .line 469
    iput v5, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchX:F

    goto :goto_0

    .line 471
    :cond_5
    iput p1, p0, Lcom/nemustech/regina/Intercepter;->mElementXWithGuide:F

    goto :goto_0

    .line 482
    .end local v0           #absAccTouchX:F
    .restart local v1       #absAccTouchY:F
    :cond_6
    cmpl-float v3, v1, v5

    if-lez v3, :cond_7

    .line 483
    iget v3, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchY:F

    neg-float v4, p2

    add-float/2addr v3, v4

    iput v3, p0, Lcom/nemustech/regina/Intercepter;->mElementYWithGuide:F

    .line 484
    iput v5, p0, Lcom/nemustech/regina/Intercepter;->mAccTouchY:F

    goto :goto_1

    .line 486
    :cond_7
    neg-float v3, p2

    iput v3, p0, Lcom/nemustech/regina/Intercepter;->mElementYWithGuide:F

    goto :goto_1
.end method

.method private stateConverter(I)Ljava/lang/String;
    .locals 1
    .parameter "state"

    .prologue
    .line 208
    packed-switch p1, :pswitch_data_0

    .line 212
    :pswitch_0
    const-string v0, "WHAT?"

    :goto_0
    return-object v0

    .line 209
    :pswitch_1
    const-string v0, "TOUCH_STATE_NONE"

    goto :goto_0

    .line 210
    :pswitch_2
    const-string v0, "TOUCH_STATE_DOWN"

    goto :goto_0

    .line 211
    :pswitch_3
    const-string v0, "TOUCH_STATE_MOVE"

    goto :goto_0

    .line 208
    nop

    :pswitch_data_0
    .packed-switch 0xa
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method private turnElementTrackDrawing(Lcom/nemustech/regina/Element;Z)V
    .locals 2
    .parameter "element"
    .parameter "turnOn"

    .prologue
    .line 1329
    if-eqz p2, :cond_0

    .line 1330
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v0}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    const v1, 0x3f333333

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->setOpacity(F)V

    .line 1335
    :goto_0
    invoke-virtual {p0}, Lcom/nemustech/regina/Intercepter;->postInvalidate()V

    .line 1337
    return-void

    .line 1332
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v0}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    const/high16 v1, 0x3f80

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->setOpacity(F)V

    goto :goto_0
.end method

.method private updateElementTrackRect()V
    .locals 8

    .prologue
    .line 1340
    iget-object v2, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v2, :cond_0

    invoke-virtual {p0}, Lcom/nemustech/regina/Intercepter;->isLongClick()Z

    move-result v2

    if-eqz v2, :cond_0

    iget v2, p0, Lcom/nemustech/regina/Intercepter;->mElementBoundPosition:I

    if-nez v2, :cond_0

    .line 1342
    iget-object v2, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ElementLocator;->availableSpaceExceptElement(Lcom/nemustech/regina/Element;)Landroid/graphics/RectF;

    move-result-object v0

    .line 1343
    .local v0, availableRect:Landroid/graphics/RectF;
    iget-object v2, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v2}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v1

    .line 1345
    .local v1, object:Lcom/nemustech/tiffany/world/TFObject;
    if-nez v0, :cond_1

    .line 1346
    iget-object v2, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    invoke-virtual {v2}, Landroid/graphics/Rect;->setEmpty()V

    .line 1347
    instance-of v2, v1, Lcom/nemustech/tiffany/world/TFModel;

    if-eqz v2, :cond_0

    check-cast v1, Lcom/nemustech/tiffany/world/TFModel;

    .end local v1           #object:Lcom/nemustech/tiffany/world/TFObject;
    sget-object v2, Lcom/nemustech/regina/TouchedColor;->ORANGE:Lcom/nemustech/regina/TouchedColor;

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->setTouchedFaceColor(Lcom/nemustech/tiffany/world/TFModel;Lcom/nemustech/regina/TouchedColor;)V

    .line 1356
    .end local v0           #availableRect:Landroid/graphics/RectF;
    :cond_0
    :goto_0
    return-void

    .line 1349
    .restart local v0       #availableRect:Landroid/graphics/RectF;
    .restart local v1       #object:Lcom/nemustech/tiffany/world/TFObject;
    :cond_1
    iget-object v2, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    iget-object v3, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget v4, v0, Landroid/graphics/RectF;->left:F

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo2DPosX(Landroid/content/Context;F)I

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget v5, v0, Landroid/graphics/RectF;->bottom:F

    invoke-static {v4, v5}, Lcom/nemustech/regina/RUtils;->convertTo2DPosY(Landroid/content/Context;F)I

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget v6, v0, Landroid/graphics/RectF;->right:F

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo2DPosX(Landroid/content/Context;F)I

    move-result v5

    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget v7, v0, Landroid/graphics/RectF;->top:F

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->convertTo2DPosY(Landroid/content/Context;F)I

    move-result v6

    invoke-virtual {v2, v3, v4, v5, v6}, Landroid/graphics/Rect;->set(IIII)V

    .line 1353
    instance-of v2, v1, Lcom/nemustech/tiffany/world/TFModel;

    if-eqz v2, :cond_0

    check-cast v1, Lcom/nemustech/tiffany/world/TFModel;

    .end local v1           #object:Lcom/nemustech/tiffany/world/TFObject;
    sget-object v2, Lcom/nemustech/regina/TouchedColor;->NORMAL:Lcom/nemustech/regina/TouchedColor;

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->setTouchedFaceColor(Lcom/nemustech/tiffany/world/TFModel;Lcom/nemustech/regina/TouchedColor;)V

    goto :goto_0
.end method

.method private workspaceBrowserTouchHandler(Landroid/view/View;Landroid/view/MotionEvent;Z)Z
    .locals 19
    .parameter "v"
    .parameter "event"
    .parameter "longPressed"

    .prologue
    .line 305
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v10

    .line 306
    .local v10, locator:Lcom/nemustech/regina/ElementLocator;
    invoke-virtual {v10}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceBrowser()Lcom/nemustech/regina/WorkspaceBrowser;

    move-result-object v14

    .line 307
    .local v14, workspaceBrowser:Lcom/nemustech/regina/WorkspaceBrowser;
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v11

    .line 308
    .local v11, moveAnimation:Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getX()F

    move-result v7

    .line 310
    .local v7, eventX:F
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v3

    .line 311
    .local v3, action:I
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->getFlickEndIndex()I

    move-result v8

    .line 312
    .local v8, flickEndIndex:I
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->isFlicking()Z

    move-result v9

    .line 316
    .local v9, isFlicking:Z
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->isIdle()Z

    move-result v16

    if-nez v16, :cond_0

    .line 317
    const-string v16, "TOUCH"

    const-string v17, "WorkspaceBrowser is busy, touch ignored"

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->w(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 318
    const/16 v16, 0x1

    .line 423
    :goto_0
    return v16

    .line 321
    :cond_0
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->getFunctionalZone()I

    move-result v15

    .line 323
    .local v15, zone:I
    move v0, v3

    and-int/lit16 v0, v0, 0xff

    move/from16 v16, v0

    packed-switch v16, :pswitch_data_0

    .line 423
    :cond_1
    :goto_1
    const/16 v16, 0x1

    goto :goto_0

    .line 325
    :pswitch_0
    const/16 v16, 0x1

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserNeedFollowingEvent:Z

    .line 327
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserFirstMove:Z

    move/from16 v16, v0

    if-eqz v16, :cond_2

    .line 328
    invoke-virtual {v10}, Lcom/nemustech/regina/ElementLocator;->hideWorkspaceNameView()V

    .line 330
    const-string v16, "Intercepter"

    const-string v17, "------------------------------first move -------------------------"

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 332
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v16, v0

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserInitialX:F

    .line 333
    const/16 v16, 0x0

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserStepSign:I

    .line 334
    const/16 v16, 0x0

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserFirstMove:Z

    .line 335
    const/16 v16, 0x0

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserPrevStep:F

    .line 338
    :cond_2
    if-nez v15, :cond_3

    .line 339
    const-string v16, "Intercepter"

    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, "isFlicking:"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move v1, v9

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->w(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 342
    if-nez v9, :cond_3

    .line 344
    invoke-virtual {v10}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v16

    move-object v0, v14

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->updateThumbs(I)V

    .line 345
    invoke-virtual {v10}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v16

    move-object v0, v14

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->show(I)V

    .line 346
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->originToFlickingZone()V

    .line 351
    :cond_3
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->getFunctionalZone()I

    move-result v16

    const/16 v17, 0x3

    move/from16 v0, v16

    move/from16 v1, v17

    if-ne v0, v1, :cond_4

    .line 352
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v16, v0

    sub-float v5, v7, v16

    .line 358
    .local v5, deltaX:F
    :goto_2
    const/16 v16, 0x0

    cmpl-float v16, v5, v16

    if-lez v16, :cond_5

    .line 359
    const/16 v16, -0x1

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserStepSign:I

    .line 365
    :goto_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Lcom/nemustech/regina/ElementLocator;->getScreenWidth()I

    move-result v16

    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->getSlotCount()I

    move-result v17

    add-int/lit8 v17, v17, 0x2

    div-int v16, v16, v17

    move/from16 v0, v16

    int-to-float v0, v0

    move v13, v0

    .line 366
    .local v13, stepLengthInPixels:F
    move v0, v5

    neg-float v0, v0

    move/from16 v16, v0

    div-float v12, v16, v13

    .line 368
    .local v12, stepDiff:F
    const/16 v16, 0x3

    move v0, v15

    move/from16 v1, v16

    if-ne v0, v1, :cond_7

    .line 369
    invoke-virtual {v14, v12}, Lcom/nemustech/regina/WorkspaceBrowser;->moveHeadModelStep(F)Z

    goto/16 :goto_1

    .line 354
    .end local v5           #deltaX:F
    .end local v12           #stepDiff:F
    .end local v13           #stepLengthInPixels:F
    :cond_4
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserInitialX:F

    move/from16 v16, v0

    sub-float v5, v7, v16

    .restart local v5       #deltaX:F
    goto :goto_2

    .line 360
    :cond_5
    const/16 v16, 0x0

    cmpg-float v16, v5, v16

    if-gez v16, :cond_6

    .line 361
    const/16 v16, 0x1

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserStepSign:I

    goto :goto_3

    .line 363
    :cond_6
    const/16 v16, 0x0

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserStepSign:I

    goto :goto_3

    .line 371
    .restart local v12       #stepDiff:F
    .restart local v13       #stepLengthInPixels:F
    :cond_7
    const/16 v16, 0x2

    move v0, v15

    move/from16 v1, v16

    if-ne v0, v1, :cond_1

    .line 374
    invoke-virtual {v11}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->getDuration()I

    move-result v6

    .line 375
    .local v6, duration:I
    if-lez v6, :cond_8

    .line 376
    invoke-virtual {v11}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->getTime()I

    move-result v16

    move/from16 v0, v16

    int-to-float v0, v0

    move/from16 v16, v0

    move v0, v6

    int-to-float v0, v0

    move/from16 v17, v0

    div-float v4, v16, v17

    .line 381
    .local v4, currentStep:F
    :goto_4
    const/16 v16, 0x0

    move-object v0, v11

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->reset(Z)V

    .line 382
    sub-float v16, v12, v4

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserPrevStep:F

    .line 383
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserPrevStep:F

    move/from16 v16, v0

    const/high16 v17, 0x42a0

    const/16 v18, 0x2

    move-object v0, v14

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->getLocation(I)F

    move-result v18

    mul-float v17, v17, v18

    const/high16 v18, 0x4407

    add-float v17, v17, v18

    move/from16 v0, v17

    float-to-int v0, v0

    move/from16 v17, v0

    move-object v0, v11

    move/from16 v1, v16

    move/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setMoveStep(FI)V

    .line 384
    invoke-virtual {v11}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->start()V

    goto/16 :goto_1

    .line 378
    .end local v4           #currentStep:F
    :cond_8
    const/4 v4, 0x0

    .restart local v4       #currentStep:F
    goto :goto_4

    .line 389
    .end local v4           #currentStep:F
    .end local v5           #deltaX:F
    .end local v6           #duration:I
    .end local v12           #stepDiff:F
    .end local v13           #stepLengthInPixels:F
    :pswitch_1
    const/16 v16, 0x0

    move/from16 v0, v16

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserNeedFollowingEvent:Z

    .line 391
    const-string v16, "Intercepter"

    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, "workspaceBrowserTouchHandler -up, zone:"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move v1, v15

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->w(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 393
    const/16 v16, 0x0

    move-object v0, v11

    move-object/from16 v1, v16

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAnimationEventListener(Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 395
    const/16 v16, 0x3

    move v0, v15

    move/from16 v1, v16

    if-ne v0, v1, :cond_9

    .line 396
    const-string v16, "Intercepter"

    const-string v17, "Touch up in workspace browser"

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 397
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->browsingZoneToFlickingZone()V

    goto/16 :goto_1

    .line 400
    :cond_9
    invoke-virtual {v10}, Lcom/nemustech/regina/ElementLocator;->hideWorkspaceNameView()V

    .line 402
    const-string v16, "Intercepter"

    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, "current flick end index : "

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move v1, v8

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 403
    if-nez v9, :cond_a

    .line 404
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->getHeadItemIndex()I

    move-result v8

    .line 409
    :goto_5
    const-string v16, "Intercepter"

    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, "New flick start index : "

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move v1, v8

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 410
    invoke-virtual {v14}, Lcom/nemustech/regina/WorkspaceBrowser;->getFunctionalZone()I

    move-result v16

    if-nez v16, :cond_b

    .line 411
    const-string v16, "Intercepter"

    const-string v17, "Reserve flick since browser has come to around POSITION_ORIGIN already"

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 412
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserStepSign:I

    move/from16 v16, v0

    move-object v0, v14

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->reserveFlick(I)V

    goto/16 :goto_1

    .line 406
    :cond_a
    const-string v16, "Intercepter"

    const-string v17, "Repeated flick"

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->w(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 407
    const/16 v16, 0x0

    move-object v0, v14

    move v1, v8

    move/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/WorkspaceBrowser;->setHeadItemIndex(IZ)V

    goto :goto_5

    .line 415
    :cond_b
    const-string v16, "Intercepter"

    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, "Handle normal & fast repeating flick, new flick start index:"

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move v1, v8

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-static/range {v16 .. v18}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 416
    const/16 v16, 0x0

    move-object v0, v14

    move v1, v8

    move/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/WorkspaceBrowser;->setHeadItemIndex(IZ)V

    .line 417
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserStepSign:I

    move/from16 v16, v0

    move-object v0, v14

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->handleFlick(I)V

    goto/16 :goto_1

    .line 323
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method private workspaceSwitcherTouchHandler(Landroid/view/View;Landroid/view/MotionEvent;Z)Z
    .locals 10
    .parameter "v"
    .parameter "event"
    .parameter "longPressed"

    .prologue
    .line 894
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v4

    .line 896
    .local v4, locator:Lcom/nemustech/regina/ElementLocator;
    const/4 v1, 0x0

    .line 897
    .local v1, bHandled:Z
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v6

    .line 898
    .local v6, world:Lcom/nemustech/tiffany/world/TFWorld;
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 900
    .local v0, action:I
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    .line 901
    .local v2, eventX:F
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    .line 903
    .local v3, eventY:F
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceSwitcher()Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    move-result-object v5

    .line 905
    .local v5, switcher:Lcom/nemustech/regina/ElementWorkspaceSwitcher;
    and-int/lit16 v7, v0, 0xff

    packed-switch v7, :pswitch_data_0

    .line 935
    :cond_0
    :goto_0
    return v1

    .line 908
    :pswitch_0
    if-eqz p3, :cond_2

    .line 909
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v7

    const/4 v8, 0x1

    if-ne v7, v8, :cond_0

    .line 910
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v7

    if-nez v7, :cond_1

    .line 911
    invoke-virtual {v5}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->animateToWorkspaceEditFromWorkspaceSwitcher()V

    .line 912
    const/4 v1, 0x1

    goto :goto_0

    .line 914
    :cond_1
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v8, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v8}, Lcom/nemustech/regina/ReginaLauncher;->getApplicationContext()Landroid/content/Context;

    move-result-object v8

    const v9, 0x7f070083

    invoke-virtual {v8, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    goto :goto_0

    .line 919
    :cond_2
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v7, :cond_0

    .line 921
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v7, v2, v3}, Lcom/nemustech/regina/Element;->setElementTouchEventPos2D(FF)V

    .line 923
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    iget-object v8, p0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    invoke-virtual {v7, p2, v8}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    goto :goto_0

    .line 929
    :pswitch_1
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v7, :cond_0

    .line 930
    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    iget-object v8, p0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    invoke-virtual {v7, p2, v8}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    .line 931
    const/4 v1, 0x1

    goto :goto_0

    .line 905
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method private workspaceTouchHandler(Landroid/view/View;Landroid/view/MotionEvent;Z)Z
    .locals 27
    .parameter "v"
    .parameter "event"
    .parameter "longPressed"

    .prologue
    .line 501
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v15

    .line 503
    .local v15, locator:Lcom/nemustech/regina/ElementLocator;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v20

    .line 504
    .local v20, world:Lcom/nemustech/tiffany/world/TFWorld;
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v6

    .line 506
    .local v6, action:I
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getX()F

    move-result v12

    .line 507
    .local v12, eventX:F
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getY()F

    move-result v13

    .line 509
    .local v13, eventY:F
    move v0, v6

    and-int/lit16 v0, v0, 0xff

    move/from16 v22, v0

    packed-switch v22, :pswitch_data_0

    .line 891
    .end local p1
    :cond_0
    :goto_0
    const/16 v22, 0x0

    :goto_1
    return v22

    .line 511
    .restart local p1
    :pswitch_0
    if-eqz p3, :cond_9

    .line 512
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaLauncher;->setDebuggingInfo(Z)V

    .line 513
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->hideSelectedShortCut()V

    .line 515
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_8

    .line 516
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->canBeRepositioned()Z

    move-result v22

    const/16 v23, 0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_4

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->isAnimationObject()Z

    move-result v22

    if-nez v22, :cond_4

    .line 522
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    const/16 v23, 0x1

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaLauncher;->setRenderAffinity(Z)V

    .line 523
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->vibrateShort()V

    .line 524
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Lcom/nemustech/regina/Element;->getX()F

    move-result v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v24 .. v24}, Lcom/nemustech/regina/Element;->getY()F

    move-result v24

    const/16 v25, 0x0

    invoke-virtual/range {v22 .. v25}, Lcom/nemustech/regina/Element;->setInitPos(FFF)V

    .line 526
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v22

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

    .line 528
    invoke-virtual {v15}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/RGWorkspace;->detachElement(Lcom/nemustech/regina/Element;)Z

    .line 529
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v10

    check-cast v10, Lcom/nemustech/tiffany/world/TFModel;

    .line 530
    .local v10, detachModel:Lcom/nemustech/tiffany/world/TFModel;
    invoke-virtual {v10}, Lcom/nemustech/tiffany/world/TFModel;->getParentHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v18

    .line 531
    .local v18, parentHolder:Lcom/nemustech/tiffany/world/TFHolder;
    if-eqz v18, :cond_1

    const/16 v22, 0x0

    move-object v0, v10

    move-object/from16 v1, v18

    move/from16 v2, v22

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFModel;->detachFrom(Lcom/nemustech/tiffany/world/TFHolder;Z)V

    .line 533
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v22

    const/16 v23, 0x1

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 535
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;

    move/from16 v22, v0

    if-eqz v22, :cond_5

    .line 536
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_2

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;

    move/from16 v22, v0

    if-eqz v22, :cond_2

    .line 537
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 p1, v0

    .end local p1
    check-cast p1, Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ElementAndroidWidget;->getHostView()Landroid/appwidget/AppWidgetHostView;

    move-result-object v22

    const/16 v23, 0x4

    invoke-virtual/range {v22 .. v23}, Landroid/appwidget/AppWidgetHostView;->setVisibility(I)V

    .line 539
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    const/16 v23, 0x1

    move-object v0, v15

    move-object/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementLocator;->zoomElement(Lcom/nemustech/regina/Element;Z)V

    .line 540
    const/16 v22, 0x0

    const/16 v23, 0x0

    move-object/from16 v0, p0

    move/from16 v1, v22

    move/from16 v2, v23

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->showElementGuide(FF)V

    .line 546
    :goto_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v22

    move-object/from16 v0, p0

    move/from16 v1, v22

    invoke-direct {v0, v1}, Lcom/nemustech/regina/Intercepter;->prepareDrawingCacheInWorkspace(I)V

    .line 547
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    move-object/from16 v0, p0

    move/from16 v1, v22

    move-object/from16 v2, v23

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->convertToAnimationObjectAll(ILcom/nemustech/regina/Element;)V

    .line 548
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    const/16 v23, 0x1

    move-object/from16 v0, p0

    move-object/from16 v1, v22

    move/from16 v2, v23

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->turnElementTrackDrawing(Lcom/nemustech/regina/Element;Z)V

    .line 550
    const/16 v22, 0x2

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    .line 551
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v17

    .line 552
    .local v17, object:Lcom/nemustech/tiffany/world/TFObject;
    move-object/from16 v0, v17

    instance-of v0, v0, Lcom/nemustech/tiffany/world/TFModel;

    move/from16 v22, v0

    if-eqz v22, :cond_3

    check-cast v17, Lcom/nemustech/tiffany/world/TFModel;

    .end local v17           #object:Lcom/nemustech/tiffany/world/TFObject;
    const/16 v22, 0x0

    move-object/from16 v0, v17

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFModel;->setTouchedFace(I)V

    .line 554
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->isUninstallableElement(Lcom/nemustech/regina/Element;)Z

    move-result v22

    if-eqz v22, :cond_7

    .line 555
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getItemType()I

    move-result v22

    if-nez v22, :cond_6

    .line 556
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v22

    const/16 v23, 0x2

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->setTrashState(I)V

    .line 557
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v22

    const/16 v23, 0x2

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showTrash(I)V

    .line 568
    .end local v10           #detachModel:Lcom/nemustech/tiffany/world/TFModel;
    .end local v18           #parentHolder:Lcom/nemustech/tiffany/world/TFHolder;
    :cond_4
    :goto_3
    const-string v22, "TOUCH"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    const-string v24, "onLongClick - TOUCH_AREA_ELEMENT - "

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0

    .line 542
    .restart local v10       #detachModel:Lcom/nemustech/tiffany/world/TFModel;
    .restart local v18       #parentHolder:Lcom/nemustech/tiffany/world/TFHolder;
    .restart local p1
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    const/16 v23, 0x1

    move-object v0, v15

    move-object/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementLocator;->zoomElement(Lcom/nemustech/regina/Element;Z)V

    .line 543
    const/16 v22, 0x0

    const/16 v23, 0x0

    move-object/from16 v0, p0

    move/from16 v1, v22

    move/from16 v2, v23

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->showElementGuide(FF)V

    goto/16 :goto_2

    .line 559
    .end local p1
    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v22

    const/16 v23, 0x1

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->setTrashState(I)V

    .line 560
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v22

    const/16 v23, 0x1

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showTrash(I)V

    goto :goto_3

    .line 563
    :cond_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v22

    const/16 v23, 0x0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->setTrashState(I)V

    .line 564
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v22

    const/16 v23, 0x0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showTrash(I)V

    goto :goto_3

    .line 571
    .end local v10           #detachModel:Lcom/nemustech/tiffany/world/TFModel;
    .end local v18           #parentHolder:Lcom/nemustech/tiffany/world/TFHolder;
    .restart local p1
    :cond_8
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    const/16 v23, 0x1

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaLauncher;->showSelectDialog(I)V

    .line 572
    const/16 v22, 0x0

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    .line 573
    const-string v22, "TOUCH"

    const-string v23, "onLongClick - TOUCH_AREA_WORKSPACE - "

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0

    .line 577
    :cond_9
    const/16 v22, -0x1

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mDragDirection:I

    .line 578
    invoke-virtual {v15}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v22

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchDownIndex:I

    .line 580
    move v0, v12

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move v0, v12

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveX:F

    .line 581
    move v0, v13

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    move v0, v13

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveY:F

    .line 582
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v22, v0

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchDownX:F

    .line 592
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_d

    .line 594
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getX()F

    move-result v23

    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getY()F

    move-result v24

    invoke-virtual/range {v22 .. v24}, Lcom/nemustech/regina/Element;->setElementTouchEventPos2D(FF)V

    .line 595
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;

    move/from16 v22, v0

    if-eqz v22, :cond_b

    .line 596
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 p1, v0

    .end local p1
    check-cast p1, Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ElementAndroidWidget;->getHostView()Landroid/appwidget/AppWidgetHostView;

    move-result-object v14

    .line 597
    .local v14, hostView:Landroid/view/View;
    if-eqz v14, :cond_a

    .line 598
    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    .line 600
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v22, v0

    invoke-virtual {v14}, Landroid/view/View;->getLeft()I

    move-result v23

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    sub-float v22, v22, v23

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    move/from16 v23, v0

    invoke-virtual {v14}, Landroid/view/View;->getTop()I

    move-result v24

    move/from16 v0, v24

    int-to-float v0, v0

    move/from16 v24, v0

    sub-float v23, v23, v24

    move-object/from16 v0, p2

    move/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Landroid/view/MotionEvent;->setLocation(FF)V

    .line 602
    move-object v0, v14

    move-object/from16 v1, p2

    invoke-virtual {v0, v1}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    .line 603
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v22, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    move/from16 v23, v0

    move-object/from16 v0, p2

    move/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Landroid/view/MotionEvent;->setLocation(FF)V

    .line 612
    .end local v14           #hostView:Landroid/view/View;
    :cond_a
    :goto_4
    const/16 v22, 0x2

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    .line 613
    const-string v22, "TOUCH"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    const-string v24, "onDown - TOUCH_AREA_ELEMENT - "

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0

    .line 606
    .restart local p1
    :cond_b
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementShortcut;

    move/from16 v22, v0

    if-eqz v22, :cond_c

    .line 607
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaLauncher;->showSelectedShortCut(Lcom/nemustech/regina/Element;)V

    .line 610
    :cond_c
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    move-object/from16 v23, v0

    move-object/from16 v0, v22

    move-object/from16 v1, p2

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    goto :goto_4

    .line 616
    :cond_d
    const/16 v22, 0x0

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    .line 617
    const-string v22, "TOUCH"

    const-string v23, "onDown - TOUCH_AREA_WORKSPACE - not really"

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0

    .line 623
    :pswitch_1
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchX:F

    move/from16 v22, v0

    sub-float v8, v12, v22

    .line 624
    .local v8, deltaX:F
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldTouchY:F

    move/from16 v22, v0

    sub-float v9, v13, v22

    .line 625
    .local v9, deltaY:F
    move v0, v8

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mFinalDragDisplacement:F

    .line 626
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->hideSelectedShortCut()V

    .line 627
    if-eqz p3, :cond_14

    .line 628
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_13

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->canBeRepositioned()Z

    move-result v22

    const/16 v23, 0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_13

    .line 629
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveX:F

    move/from16 v22, v0

    sub-float v8, v12, v22

    .line 630
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveY:F

    move/from16 v22, v0

    sub-float v9, v13, v22

    .line 631
    const-string v22, "Intercepter"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {v6}, Lcom/nemustech/regina/RLog;->touchEventToString(I)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    const-string v24, " TOUCH_STATE_ELEMENT_LONGCLICK"

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    const-string v24, " deltaX="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, v23

    move v1, v8

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v23

    const-string v24, " deltaY="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move v0, v9

    neg-float v0, v0

    move/from16 v24, v0

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    const/16 v24, 0x0

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 636
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mElementXWithGuide:F

    move/from16 v23, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mElementYWithGuide:F

    move/from16 v24, v0

    move-object v0, v15

    move-object/from16 v1, v22

    move/from16 v2, v23

    move/from16 v3, v24

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementLocator;->elementMoveOnZoom(Lcom/nemustech/regina/Element;FF)V

    .line 638
    move-object/from16 v0, p0

    move v1, v8

    move v2, v9

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->showElementGuide(FF)V

    .line 640
    const-string v22, "Intercepter"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    const-string v24, "mSelectedElement location x="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v24 .. v24}, Lcom/nemustech/regina/Element;->getX()F

    move-result v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v23

    const-string v24, " y="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v24 .. v24}, Lcom/nemustech/regina/Element;->getY()F

    move-result v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v23

    const-string v24, " z="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v24 .. v24}, Lcom/nemustech/regina/Element;->getZ()F

    move-result v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    invoke-static/range {v22 .. v23}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 644
    move v0, v12

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveX:F

    .line 645
    move v0, v13

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mOldLongClickMoveY:F

    .line 647
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v11

    .line 648
    .local v11, elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    move v0, v12

    float-to-int v0, v0

    move/from16 v22, v0

    move v0, v13

    float-to-int v0, v0

    move/from16 v23, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    move-object v0, v11

    move/from16 v1, v22

    move/from16 v2, v23

    move-object/from16 v3, v24

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showElementStatus(IILcom/nemustech/regina/Element;)V

    .line 658
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mScrollState:I

    move/from16 v22, v0

    if-nez v22, :cond_f

    invoke-virtual {v11}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->getBandAidAreaBound()Landroid/graphics/Rect;

    move-result-object v22

    move-object/from16 v0, v22

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v22, v0

    move v0, v13

    float-to-int v0, v0

    move/from16 v23, v0

    move/from16 v0, v22

    move/from16 v1, v23

    if-le v0, v1, :cond_f

    .line 660
    move-object/from16 v0, p0

    move v1, v12

    invoke-direct {v0, v1}, Lcom/nemustech/regina/Intercepter;->scrollWorkspaceDelayed(F)V

    .line 661
    const/high16 v22, 0x4248

    cmpg-float v22, v12, v22

    if-ltz v22, :cond_e

    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/Intercepter;->getWidth()I

    move-result v22

    const/16 v23, 0x32

    sub-int v22, v22, v23

    move/from16 v0, v22

    int-to-float v0, v0

    move/from16 v22, v0

    cmpl-float v22, v12, v22

    if-ltz v22, :cond_11

    .line 662
    :cond_e
    const/16 v22, 0x32

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mScrollDelay:I

    .line 668
    :cond_f
    :goto_5
    invoke-virtual {v11}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->getBandAidAreaBound()Landroid/graphics/Rect;

    move-result-object v22

    move v0, v12

    float-to-int v0, v0

    move/from16 v23, v0

    move v0, v13

    float-to-int v0, v0

    move/from16 v24, v0

    invoke-virtual/range {v22 .. v24}, Landroid/graphics/Rect;->contains(II)Z

    move-result v22

    if-eqz v22, :cond_12

    .line 669
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Landroid/graphics/Rect;->setEmpty()V

    .line 670
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/Intercepter;->invalidate()V

    .line 727
    .end local v11           #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    :cond_10
    :goto_6
    const/16 v22, 0x1

    goto/16 :goto_1

    .line 664
    .restart local v11       #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    :cond_11
    const/16 v22, 0x258

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mScrollDelay:I

    goto :goto_5

    .line 672
    :cond_12
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/Intercepter;->updateElementTrackRect()V

    .line 673
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/Intercepter;->invalidate()V

    goto :goto_6

    .line 678
    .end local v11           #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    :cond_13
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_10

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move/from16 v22, v0

    if-eqz v22, :cond_10

    .line 679
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    move-object/from16 v23, v0

    move-object/from16 v0, v22

    move-object/from16 v1, p2

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    goto :goto_6

    .line 688
    :cond_14
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_15

    .line 689
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementReginaWidget;

    move/from16 v22, v0

    if-eqz v22, :cond_17

    .line 690
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object v5, v0

    check-cast v5, Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v5}, Lcom/nemustech/regina/ElementReginaWidget;->forceHideHighLightPanel()V

    .line 702
    :cond_15
    :goto_7
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mDragDirection:I

    move/from16 v22, v0

    const/16 v23, -0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_16

    .line 703
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-nez v22, :cond_18

    .line 704
    const/16 v22, 0x1

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mDragDirection:I

    .line 715
    :cond_16
    :goto_8
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mDragDirection:I

    move/from16 v22, v0

    const/16 v23, 0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_1b

    .line 717
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v22

    if-nez v22, :cond_10

    .line 718
    const/16 v22, 0x0

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    .line 719
    invoke-direct/range {p0 .. p3}, Lcom/nemustech/regina/Intercepter;->workspaceBrowserTouchHandler(Landroid/view/View;Landroid/view/MotionEvent;Z)Z

    goto/16 :goto_6

    .line 691
    :cond_17
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;

    move/from16 v22, v0

    if-eqz v22, :cond_15

    .line 692
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object v5, v0

    check-cast v5, Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual {v5}, Lcom/nemustech/regina/ElementAndroidWidget;->getHostView()Landroid/appwidget/AppWidgetHostView;

    move-result-object v14

    .line 693
    .restart local v14       #hostView:Landroid/view/View;
    if-eqz v14, :cond_15

    .line 694
    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    .line 695
    move-object v0, v14

    move-object/from16 v1, p2

    invoke-virtual {v0, v1}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    goto :goto_7

    .line 706
    .end local v14           #hostView:Landroid/view/View;
    :cond_18
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move/from16 v22, v0

    if-nez v22, :cond_19

    invoke-static {v9}, Ljava/lang/Math;->abs(F)F

    move-result v22

    invoke-static {v8}, Ljava/lang/Math;->abs(F)F

    move-result v23

    cmpl-float v22, v22, v23

    if-lez v22, :cond_1a

    .line 707
    :cond_19
    const/16 v22, 0x0

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mDragDirection:I

    goto :goto_8

    .line 709
    :cond_1a
    const/16 v22, 0x1

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mDragDirection:I

    .line 710
    const/16 v22, 0x0

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    goto/16 :goto_8

    .line 722
    :cond_1b
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mDragDirection:I

    move/from16 v22, v0

    if-nez v22, :cond_10

    .line 723
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_10

    .line 724
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    move-object/from16 v23, v0

    move-object/from16 v0, v22

    move-object/from16 v1, p2

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    goto/16 :goto_6

    .line 730
    .end local v8           #deltaX:F
    .end local v9           #deltaY:F
    :pswitch_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->hideSelectedShortCut()V

    .line 731
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mScrollRunnable:Lcom/nemustech/regina/Intercepter$ScrollRunnable;

    move-object/from16 v22, v0

    if-eqz v22, :cond_1c

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mScrollRunnable:Lcom/nemustech/regina/Intercepter$ScrollRunnable;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/Intercepter;->removeCallbacks(Ljava/lang/Runnable;)Z

    .line 732
    :cond_1c
    if-eqz p3, :cond_27

    .line 733
    const-string v22, "Intercepter"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    const-string v24, "onTouchEvent() long click start mSelectedElement="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 734
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    move/from16 v22, v0

    const/16 v23, 0x2

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_0

    .line 736
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_26

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->canBeRepositioned()Z

    move-result v22

    const/16 v23, 0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_26

    .line 737
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    move-object v0, v15

    move-object/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ElementLocator;->zoomElement(Lcom/nemustech/regina/Element;Z)V

    .line 739
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v11

    .line 740
    .restart local v11       #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    move v0, v12

    float-to-int v0, v0

    move/from16 v22, v0

    move v0, v13

    float-to-int v0, v0

    move/from16 v23, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

    move-object/from16 v25, v0

    move-object v0, v11

    move/from16 v1, v22

    move/from16 v2, v23

    move-object/from16 v3, v24

    move-object/from16 v4, v25

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showElementAction(IILcom/nemustech/regina/Element;Lcom/nemustech/regina/RGWorkspace;)Z

    move-result v22

    if-eqz v22, :cond_1e

    .line 741
    const/16 v22, 0x0

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/Intercepter;->mDebugMovedToTrash:Z

    .line 742
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    move-object/from16 v0, p0

    move/from16 v1, v22

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->convertToElementObjectAllWorkspace(ILcom/nemustech/regina/Element;)V

    .line 743
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    move-object/from16 v0, p0

    move-object/from16 v1, v22

    move/from16 v2, v23

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->turnElementTrackDrawing(Lcom/nemustech/regina/Element;Z)V

    .line 744
    const/16 v22, 0x0

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    .line 807
    .end local p1
    :goto_9
    const-string v22, "Intercepter"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {v6}, Lcom/nemustech/regina/RLog;->touchEventToString(I)Ljava/lang/String;

    move-result-object v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    const-string v24, " TOUCH_STATE_ELEMENT_LONGCLICK"

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 816
    .end local v11           #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    :cond_1d
    :goto_a
    const/16 v22, 0x0

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mScrollState:I

    .line 817
    const/16 v22, 0x258

    move/from16 v0, v22

    move-object/from16 v1, p0

    iput v0, v1, Lcom/nemustech/regina/Intercepter;->mScrollDelay:I

    goto/16 :goto_0

    .line 746
    .restart local v11       #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    .restart local p1
    :cond_1e
    invoke-virtual {v11}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showBandAid()V

    .line 749
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ElementLocator;->availableSpaceExceptElement(Lcom/nemustech/regina/Element;)Landroid/graphics/RectF;

    move-result-object v16

    .line 752
    .local v16, movedSpace:Landroid/graphics/RectF;
    if-eqz v16, :cond_22

    .line 753
    invoke-virtual {v15}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v7

    .line 766
    .local v7, attachWorkspace:Lcom/nemustech/regina/RGWorkspace;
    :goto_b
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    move-object v1, v7

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/Element;->setWorkspace(Lcom/nemustech/regina/RGWorkspace;)V

    .line 767
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementShortcut;

    move/from16 v22, v0

    if-eqz v22, :cond_1f

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 p1, v0

    .end local p1
    check-cast p1, Lcom/nemustech/regina/ElementShortcut;

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ElementShortcut;->isDetachAppList()Z

    move-result v22

    if-eqz v22, :cond_1f

    .line 769
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 p1, v0

    check-cast p1, Lcom/nemustech/regina/ElementShortcut;

    const/16 v22, 0x0

    move-object/from16 v0, p1

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementShortcut;->setDetachAppList(Z)V

    .line 772
    :cond_1f
    const-string v22, "Intercepter"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    const-string v24, "attachWorkspace="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, v23

    move-object v1, v7

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v23

    const-string v24, " mSelectedElement.getWorkspaceIndex()="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v24 .. v24}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    sget-boolean v24, Lcom/nemustech/regina/Intercepter;->LOG_FLAG:Z

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 775
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementAndroidWidget;

    move/from16 v22, v0

    if-eqz v22, :cond_20

    .line 776
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object v5, v0

    check-cast v5, Lcom/nemustech/regina/ElementAndroidWidget;

    .line 777
    .local v5, aWidget:Lcom/nemustech/regina/ElementAndroidWidget;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/RGWorkspace;->getWorkspaceView()Lcom/nemustech/regina/WorkspaceView;

    move-result-object v21

    .line 778
    .local v21, wsScreen:Lcom/nemustech/regina/WorkspaceView;
    invoke-virtual {v5}, Lcom/nemustech/regina/ElementAndroidWidget;->getHostView()Landroid/appwidget/AppWidgetHostView;

    move-result-object v22

    invoke-virtual/range {v21 .. v22}, Lcom/nemustech/regina/WorkspaceView;->removeView(Landroid/view/View;)V

    .line 781
    .end local v5           #aWidget:Lcom/nemustech/regina/ElementAndroidWidget;
    .end local v21           #wsScreen:Lcom/nemustech/regina/WorkspaceView;
    :cond_20
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object v0, v7

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/RGWorkspace;->attachElement(Lcom/nemustech/regina/Element;)Z

    .line 782
    const-string v22, "Intercepter"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    const-string v24, "attachWorkspace="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, v23

    move-object v1, v7

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v23

    const-string v24, " mSelectedElement.getWorkspaceIndex()="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v24 .. v24}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    invoke-static/range {v22 .. v23}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 783
    const-string v22, "Intercepter"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    const-string v24, "attachWorkspace.getElementList().size()="

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual {v7}, Lcom/nemustech/regina/RGWorkspace;->getElementList()Ljava/util/ArrayList;

    move-result-object v24

    invoke-virtual/range {v24 .. v24}, Ljava/util/ArrayList;->size()I

    move-result v24

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    invoke-static/range {v22 .. v23}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 784
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    move-object/from16 v0, p0

    move/from16 v1, v22

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->convertToElementObjectAllWorkspace(ILcom/nemustech/regina/Element;)V

    .line 785
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    move-object/from16 v0, p0

    move-object/from16 v1, v22

    move/from16 v2, v23

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->turnElementTrackDrawing(Lcom/nemustech/regina/Element;Z)V

    .line 787
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v17

    .line 788
    .restart local v17       #object:Lcom/nemustech/tiffany/world/TFObject;
    move-object/from16 v0, v17

    instance-of v0, v0, Lcom/nemustech/tiffany/world/TFModel;

    move/from16 v22, v0

    if-eqz v22, :cond_21

    check-cast v17, Lcom/nemustech/tiffany/world/TFModel;

    .end local v17           #object:Lcom/nemustech/tiffany/world/TFObject;
    const/16 v22, -0x1

    move-object/from16 v0, v17

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFModel;->setTouchedFace(I)V

    .line 790
    :cond_21
    const-string v22, "Intercepter"

    const-string v23, "workspaceindex=%d is ElementMode"

    const/16 v24, 0x1

    move/from16 v0, v24

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v24, v0

    const/16 v25, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v26, v0

    invoke-virtual/range {v26 .. v26}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v26

    invoke-static/range {v26 .. v26}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v26

    aput-object v26, v24, v25

    invoke-static/range {v23 .. v24}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v23

    sget-boolean v24, Lcom/nemustech/regina/Intercepter;->LOG_FLAG:Z

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 791
    if-eqz v16, :cond_24

    .line 792
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v16 .. v16}, Landroid/graphics/RectF;->centerX()F

    move-result v23

    invoke-virtual/range {v16 .. v16}, Landroid/graphics/RectF;->centerY()F

    move-result v24

    const/16 v25, 0x0

    invoke-virtual/range {v22 .. v25}, Lcom/nemustech/regina/Element;->locate(FFF)V

    .line 793
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v16 .. v16}, Landroid/graphics/RectF;->centerX()F

    move-result v23

    invoke-virtual/range {v16 .. v16}, Landroid/graphics/RectF;->centerY()F

    move-result v24

    const/16 v25, 0x0

    invoke-virtual/range {v22 .. v25}, Lcom/nemustech/regina/Element;->setInitPos(FFF)V

    .line 794
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v22

    move-object v0, v15

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v22

    const/high16 v23, 0x3f00

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/RGWorkspace;->updateThumb(F)V

    .line 799
    :goto_c
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->isFailedArrange()Z

    move-result v22

    if-eqz v22, :cond_25

    .line 800
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/Element;->setFailedArrange(Z)V

    .line 801
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaLauncher;->addElementToDatabase(Lcom/nemustech/regina/Element;)V

    goto/16 :goto_9

    .line 756
    .end local v7           #attachWorkspace:Lcom/nemustech/regina/RGWorkspace;
    .restart local p1
    :cond_22
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->isFailedArrange()Z

    move-result v22

    if-eqz v22, :cond_23

    .line 757
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    move-object/from16 v0, p0

    move/from16 v1, v22

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->convertToElementObjectAllWorkspace(ILcom/nemustech/regina/Element;)V

    .line 758
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    const/16 v23, 0x0

    move-object/from16 v0, p0

    move-object/from16 v1, v22

    move/from16 v2, v23

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/Intercepter;->turnElementTrackDrawing(Lcom/nemustech/regina/Element;Z)V

    .line 759
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object p1

    .end local p1
    check-cast p1, Lcom/nemustech/tiffany/world/TFModel;

    move-object/from16 v0, p1

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFModel;->detachFrom(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 760
    const/16 v22, 0x0

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    goto/16 :goto_0

    .line 763
    .restart local p1
    :cond_23
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

    move-object v7, v0

    .restart local v7       #attachWorkspace:Lcom/nemustech/regina/RGWorkspace;
    goto/16 :goto_b

    .line 796
    .end local p1
    :cond_24
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Lcom/nemustech/regina/Element;->locateInit()V

    goto/16 :goto_c

    .line 803
    :cond_25
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v23, v0

    invoke-virtual/range {v22 .. v23}, Lcom/nemustech/regina/ReginaLauncher;->updateItemDatabase(Lcom/nemustech/regina/Element;)V

    goto/16 :goto_9

    .line 811
    .end local v7           #attachWorkspace:Lcom/nemustech/regina/RGWorkspace;
    .end local v11           #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    .end local v16           #movedSpace:Landroid/graphics/RectF;
    .restart local p1
    :cond_26
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_1d

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move/from16 v22, v0

    if-eqz v22, :cond_1d

    .line 812
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    move-object/from16 v23, v0

    move-object/from16 v0, v22

    move-object/from16 v1, p2

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    goto/16 :goto_a

    .line 822
    :cond_27
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    move-object/from16 v22, v0

    if-eqz v22, :cond_28

    .line 823
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    move-object/from16 v22, v0

    invoke-virtual/range {v22 .. v22}, Landroid/view/View;->getLeft()I

    move-result v22

    move/from16 v0, v22

    int-to-float v0, v0

    move/from16 v22, v0

    sub-float v22, v12, v22

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Landroid/view/View;->getTop()I

    move-result v23

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    sub-float v23, v13, v23

    move-object/from16 v0, p2

    move/from16 v1, v22

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Landroid/view/MotionEvent;->setLocation(FF)V

    .line 824
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    move-object/from16 v1, p2

    invoke-virtual {v0, v1}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    .line 825
    move-object/from16 v0, p2

    move v1, v12

    move v2, v13

    invoke-virtual {v0, v1, v2}, Landroid/view/MotionEvent;->setLocation(FF)V

    .line 826
    const/16 v22, 0x0

    move-object/from16 v0, v22

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/Intercepter;->mAndroidTouchHostView:Landroid/view/View;

    goto/16 :goto_0

    .line 830
    :cond_28
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mTouchState:I

    move/from16 v22, v0

    const/16 v23, 0xc

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_2b

    .line 831
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSecretPointChecker:Lcom/nemustech/regina/SecretPointChecker;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    move v1, v12

    move v2, v13

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/SecretPointChecker;->checkHighlight(FF)V

    .line 833
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mTouchArea:I

    move/from16 v22, v0

    const/16 v23, 0x2

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_29

    .line 835
    const-string v22, "TOUCH"

    new-instance v23, Ljava/lang/StringBuilder;

    invoke-direct/range {v23 .. v23}, Ljava/lang/StringBuilder;-><init>()V

    const-string v24, "onUp - TOUCH_AREA_ELEMENT - "

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v24, v0

    invoke-virtual/range {v23 .. v24}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v23

    const/16 v24, 0x1

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 836
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementShortcut;

    move/from16 v22, v0

    if-eqz v22, :cond_2a

    .line 837
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 p1, v0

    .end local p1
    check-cast p1, Lcom/nemustech/regina/ElementShortcut;

    move-object/from16 v0, v22

    move-object/from16 v1, p1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->executeShortcutElement(Lcom/nemustech/regina/ElementShortcut;)V

    .line 887
    :cond_29
    :goto_d
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    if-eqz v22, :cond_0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedObject:Lcom/nemustech/tiffany/world/TFObject;

    move-object/from16 v23, v0

    move-object/from16 v0, v22

    move-object/from16 v1, p2

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/Element;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    goto/16 :goto_0

    .line 838
    .restart local p1
    :cond_2a
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    instance-of v0, v0, Lcom/nemustech/regina/ElementFolder;

    move/from16 v22, v0

    if-eqz v22, :cond_29

    .line 839
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    move-object/from16 p1, v0

    .end local p1
    check-cast p1, Lcom/nemustech/regina/ElementFolder;

    move-object/from16 v0, v22

    move-object/from16 v1, p1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->executeFolderElement(Lcom/nemustech/regina/ElementFolder;)V

    goto :goto_d

    .line 842
    .restart local p1
    :cond_2b
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mTouchState:I

    move/from16 v22, v0

    const/16 v23, 0xd

    move/from16 v0, v22

    move/from16 v1, v23

    if-ne v0, v1, :cond_29

    .line 843
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserNeedFollowingEvent:Z

    move/from16 v22, v0

    if-eqz v22, :cond_29

    .line 844
    const-string v22, "TOUCH"

    const-string v23, "workspaceBrowserNeedFollowing detected"

    const/16 v24, 0x0

    invoke-static/range {v22 .. v24}, Lcom/nemustech/regina/RLog;->w(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 845
    invoke-virtual {v15}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceBrowser()Lcom/nemustech/regina/WorkspaceBrowser;

    move-result-object v19

    .line 846
    .local v19, workspaceBrowser:Lcom/nemustech/regina/WorkspaceBrowser;
    invoke-virtual {v15}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v22

    move-object/from16 v0, v19

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->updateThumbs(I)V

    .line 847
    invoke-virtual {v15}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v22

    move-object/from16 v0, v19

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->show(I)V

    .line 848
    invoke-virtual/range {v19 .. v19}, Lcom/nemustech/regina/WorkspaceBrowser;->originToFlickingZone()V

    .line 849
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/Intercepter;->mWorkspaceBrowserStepSign:I

    move/from16 v22, v0

    move-object/from16 v0, v19

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/WorkspaceBrowser;->handleFlick(I)V

    goto/16 :goto_d

    .line 509
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method


# virtual methods
.method public cancelToast()V
    .locals 1

    .prologue
    .line 203
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mAppLaunchingToast:Landroid/widget/Toast;

    if-eqz v0, :cond_0

    .line 204
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mAppLaunchingToast:Landroid/widget/Toast;

    invoke-virtual {v0}, Landroid/widget/Toast;->cancel()V

    .line 205
    :cond_0
    return-void
.end method

.method public clearGuideLine()V
    .locals 1

    .prologue
    .line 217
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElementRect:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->setEmpty()V

    .line 218
    invoke-virtual {p0}, Lcom/nemustech/regina/Intercepter;->invalidate()V

    .line 219
    return-void
.end method

.method public convertToAnimationObjectAllWorkspace(ILcom/nemustech/regina/Element;)V
    .locals 5
    .parameter "initWsIndex"
    .parameter "exceptElement"

    .prologue
    const/4 v4, 0x0

    .line 1432
    iget-object v3, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v2

    .line 1433
    .local v2, workspaceCount:I
    const/4 v3, 0x1

    sub-int v3, p1, v3

    add-int/2addr v3, v2

    rem-int v0, v3, v2

    .line 1434
    .local v0, left:I
    add-int/lit8 v3, p1, 0x1

    rem-int v1, v3, v2

    .line 1436
    .local v1, right:I
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/Intercepter;->convertToAnimationObjectAll(ILcom/nemustech/regina/Element;)V

    .line 1437
    invoke-direct {p0, v0, v4}, Lcom/nemustech/regina/Intercepter;->convertToAnimationObjectAll(ILcom/nemustech/regina/Element;)V

    .line 1438
    invoke-direct {p0, v1, v4}, Lcom/nemustech/regina/Intercepter;->convertToAnimationObjectAll(ILcom/nemustech/regina/Element;)V

    .line 1439
    return-void
.end method

.method public convertToElementObjectAllWorkspace(ILcom/nemustech/regina/Element;)V
    .locals 5
    .parameter "initWsIndex"
    .parameter "exceptElement"

    .prologue
    const/4 v4, 0x0

    .line 1422
    iget-object v3, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v3}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v3

    invoke-virtual {v3}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v2

    .line 1423
    .local v2, workspaceCount:I
    const/4 v3, 0x1

    sub-int v3, p1, v3

    add-int/2addr v3, v2

    rem-int v0, v3, v2

    .line 1424
    .local v0, left:I
    add-int/lit8 v3, p1, 0x1

    rem-int v1, v3, v2

    .line 1426
    .local v1, right:I
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/Intercepter;->convertToElementObjectAll(ILcom/nemustech/regina/Element;)V

    .line 1427
    invoke-direct {p0, v0, v4}, Lcom/nemustech/regina/Intercepter;->convertToElementObjectAll(ILcom/nemustech/regina/Element;)V

    .line 1428
    invoke-direct {p0, v1, v4}, Lcom/nemustech/regina/Intercepter;->convertToElementObjectAll(ILcom/nemustech/regina/Element;)V

    .line 1429
    return-void
.end method

.method protected dispatchDraw(Landroid/graphics/Canvas;)V
    .locals 12
    .parameter "canvas"

    .prologue
    const/4 v11, 0x0

    const/4 v10, 0x1

    .line 1636
    invoke-super {p0, p1}, Landroid/widget/LinearLayout;->dispatchDraw(Landroid/graphics/Canvas;)V

    .line 1638
    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v6

    if-nez v6, :cond_0

    .line 1639
    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mSecretPointChecker:Lcom/nemustech/regina/SecretPointChecker;

    invoke-virtual {v6, p1}, Lcom/nemustech/regina/SecretPointChecker;->drawHighlight(Landroid/graphics/Canvas;)V

    .line 1642
    :cond_0
    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v6, :cond_1

    invoke-virtual {p0}, Lcom/nemustech/regina/Intercepter;->isLongClick()Z

    move-result v6

    if-eqz v6, :cond_1

    iget v6, p0, Lcom/nemustech/regina/Intercepter;->mElementBoundPosition:I

    if-nez v6, :cond_1

    .line 1644
    invoke-direct {p0, v10, p1}, Lcom/nemustech/regina/Intercepter;->drawElementGuide(ZLandroid/graphics/Canvas;)I

    .line 1647
    :cond_1
    iget-boolean v6, p0, Lcom/nemustech/regina/Intercepter;->mDebugBound:Z

    if-eqz v6, :cond_2

    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v6, :cond_2

    .line 1649
    new-instance v4, Landroid/graphics/Paint;

    invoke-direct {v4, v10}, Landroid/graphics/Paint;-><init>(I)V

    .line 1650
    .local v4, paint:Landroid/graphics/Paint;
    const/high16 v6, -0x1

    invoke-virtual {v4, v6}, Landroid/graphics/Paint;->setColor(I)V

    .line 1651
    sget-object v6, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v4, v6}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 1652
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mDebugRect:Landroid/graphics/Rect;

    .line 1654
    .local v5, rect:Landroid/graphics/Rect;
    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v7}, Lcom/nemustech/regina/Element;->getX()F

    move-result v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->convertTo2DPosX(Landroid/content/Context;F)I

    move-result v2

    .line 1655
    .local v2, elementX:I
    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v7}, Lcom/nemustech/regina/Element;->getY()F

    move-result v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->convertTo2DPosY(Landroid/content/Context;F)I

    move-result v3

    .line 1656
    .local v3, elementY:I
    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v7}, Lcom/nemustech/regina/Element;->getWidth3D()F

    move-result v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v1

    .line 1657
    .local v1, elementWidth:I
    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v7}, Lcom/nemustech/regina/Element;->getHeight3D()F

    move-result v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v0

    .line 1659
    .local v0, elementHeight:I
    div-int/lit8 v6, v1, 0x2

    sub-int v6, v2, v6

    div-int/lit8 v7, v0, 0x2

    sub-int v7, v3, v7

    div-int/lit8 v8, v1, 0x2

    add-int/2addr v8, v2

    div-int/lit8 v9, v0, 0x2

    add-int/2addr v9, v3

    invoke-virtual {v5, v6, v7, v8, v9}, Landroid/graphics/Rect;->set(IIII)V

    .line 1661
    invoke-virtual {p1, v5, v4}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1663
    iget-boolean v6, p0, Lcom/nemustech/regina/Intercepter;->mDebugMovedToTrash:Z

    if-ne v6, v10, :cond_2

    .line 1664
    const v6, -0xffff01

    invoke-virtual {v4, v6}, Landroid/graphics/Paint;->setColor(I)V

    .line 1665
    invoke-virtual {p1}, Landroid/graphics/Canvas;->getWidth()I

    move-result v6

    invoke-virtual {p1}, Landroid/graphics/Canvas;->getHeight()I

    move-result v7

    invoke-virtual {v5, v11, v11, v6, v7}, Landroid/graphics/Rect;->set(IIII)V

    .line 1666
    invoke-virtual {p1, v5, v4}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1669
    .end local v0           #elementHeight:I
    .end local v1           #elementWidth:I
    .end local v2           #elementX:I
    .end local v3           #elementY:I
    .end local v4           #paint:Landroid/graphics/Paint;
    .end local v5           #rect:Landroid/graphics/Rect;
    :cond_2
    return-void
.end method

.method public finishCreateShortCutFromAppList()V
    .locals 10

    .prologue
    .line 261
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v5, :cond_2

    .line 262
    iget-object v6, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    monitor-enter v6

    .line 263
    :try_start_0
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v5, :cond_1

    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    instance-of v5, v5, Lcom/nemustech/regina/ElementShortcut;

    if-eqz v5, :cond_1

    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5}, Lcom/nemustech/regina/Element;->canBeRepositioned()Z

    move-result v5

    const/4 v7, 0x1

    if-ne v5, v7, :cond_1

    .line 264
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    check-cast v5, Lcom/nemustech/regina/ElementShortcut;

    invoke-virtual {v5}, Lcom/nemustech/regina/ElementShortcut;->isDetachAppList()Z

    move-result v5

    if-eqz v5, :cond_0

    .line 265
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    check-cast v5, Lcom/nemustech/regina/ElementShortcut;

    const/4 v7, 0x0

    invoke-virtual {v5, v7}, Lcom/nemustech/regina/ElementShortcut;->setDetachAppList(Z)V

    .line 268
    :cond_0
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v1

    .line 269
    .local v1, elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    const/4 v5, 0x0

    iput-boolean v5, p0, Lcom/nemustech/regina/Intercepter;->mDebugMovedToTrash:Z

    .line 270
    invoke-virtual {v1}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->showBandAid()V

    .line 272
    const/4 v0, 0x0

    .line 273
    .local v0, attachWorkspace:Lcom/nemustech/regina/RGWorkspace;
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5}, Lcom/nemustech/regina/Element;->isFailedArrange()Z

    move-result v5

    if-eqz v5, :cond_3

    .line 274
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v5

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {p0, v5, v7}, Lcom/nemustech/regina/Intercepter;->convertToElementObjectAllWorkspace(ILcom/nemustech/regina/Element;)V

    .line 275
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    const/4 v7, 0x0

    invoke-direct {p0, v5, v7}, Lcom/nemustech/regina/Intercepter;->turnElementTrackDrawing(Lcom/nemustech/regina/Element;Z)V

    .line 276
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v5

    check-cast v5, Lcom/nemustech/tiffany/world/TFModel;

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v7

    invoke-virtual {v5, v7}, Lcom/nemustech/tiffany/world/TFModel;->detachFrom(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 297
    :goto_0
    const/4 v5, 0x0

    iput-boolean v5, p0, Lcom/nemustech/regina/Intercepter;->mPendingActionUpEvent:Z

    .line 298
    const/4 v5, 0x0

    iput-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    .line 300
    .end local v0           #attachWorkspace:Lcom/nemustech/regina/RGWorkspace;
    .end local v1           #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    :cond_1
    monitor-exit v6

    .line 302
    :cond_2
    return-void

    .line 278
    .restart local v0       #attachWorkspace:Lcom/nemustech/regina/RGWorkspace;
    .restart local v1       #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    :cond_3
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v2

    .line 279
    .local v2, locator:Lcom/nemustech/regina/ElementLocator;
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    const/4 v7, 0x0

    invoke-virtual {v2, v5, v7}, Lcom/nemustech/regina/ElementLocator;->zoomElement(Lcom/nemustech/regina/Element;Z)V

    .line 280
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

    .line 281
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v0, v5}, Lcom/nemustech/regina/RGWorkspace;->attachElement(Lcom/nemustech/regina/Element;)Z

    .line 282
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v5

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {p0, v5, v7}, Lcom/nemustech/regina/Intercepter;->convertToElementObjectAllWorkspace(ILcom/nemustech/regina/Element;)V

    .line 283
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    const/4 v7, 0x0

    invoke-direct {p0, v5, v7}, Lcom/nemustech/regina/Intercepter;->turnElementTrackDrawing(Lcom/nemustech/regina/Element;Z)V

    .line 284
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v5

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5, v7}, Lcom/nemustech/regina/ElementLocator;->availableSpaceExceptElement(Lcom/nemustech/regina/Element;)Landroid/graphics/RectF;

    move-result-object v3

    .line 285
    .local v3, movedSpace:Landroid/graphics/RectF;
    if-eqz v3, :cond_5

    .line 286
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v3}, Landroid/graphics/RectF;->centerX()F

    move-result v7

    invoke-virtual {v3}, Landroid/graphics/RectF;->centerY()F

    move-result v8

    const/4 v9, 0x0

    invoke-virtual {v5, v7, v8, v9}, Lcom/nemustech/regina/Element;->locate(FFF)V

    .line 287
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v3}, Landroid/graphics/RectF;->centerX()F

    move-result v7

    invoke-virtual {v3}, Landroid/graphics/RectF;->centerY()F

    move-result v8

    const/4 v9, 0x0

    invoke-virtual {v5, v7, v8, v9}, Lcom/nemustech/regina/Element;->setInitPos(FFF)V

    .line 288
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v5

    invoke-virtual {v2, v5}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v5

    const/high16 v7, 0x3f00

    invoke-virtual {v5, v7}, Lcom/nemustech/regina/RGWorkspace;->updateThumb(F)V

    .line 292
    :goto_1
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v4

    .line 293
    .local v4, object:Lcom/nemustech/tiffany/world/TFObject;
    instance-of v5, v4, Lcom/nemustech/tiffany/world/TFModel;

    if-eqz v5, :cond_4

    check-cast v4, Lcom/nemustech/tiffany/world/TFModel;

    .end local v4           #object:Lcom/nemustech/tiffany/world/TFObject;
    const/4 v5, -0x1

    invoke-virtual {v4, v5}, Lcom/nemustech/tiffany/world/TFModel;->setTouchedFace(I)V

    .line 294
    :cond_4
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    iget-object v7, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5, v7}, Lcom/nemustech/regina/ReginaLauncher;->updateItemDatabase(Lcom/nemustech/regina/Element;)V

    .line 295
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5}, Lcom/nemustech/regina/Element;->getWorkspaceIndex()I

    move-result v5

    invoke-virtual {v2, v5}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v5

    const/high16 v7, 0x3f00

    invoke-virtual {v5, v7}, Lcom/nemustech/regina/RGWorkspace;->updateThumb(F)V

    goto/16 :goto_0

    .line 300
    .end local v0           #attachWorkspace:Lcom/nemustech/regina/RGWorkspace;
    .end local v1           #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    .end local v2           #locator:Lcom/nemustech/regina/ElementLocator;
    .end local v3           #movedSpace:Landroid/graphics/RectF;
    :catchall_0
    move-exception v5

    monitor-exit v6
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v5

    .line 290
    .restart local v0       #attachWorkspace:Lcom/nemustech/regina/RGWorkspace;
    .restart local v1       #elementWSControlBtn:Lcom/nemustech/regina/ElementWorkspaceControlBtn;
    .restart local v2       #locator:Lcom/nemustech/regina/ElementLocator;
    .restart local v3       #movedSpace:Landroid/graphics/RectF;
    :cond_5
    :try_start_1
    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v5}, Lcom/nemustech/regina/Element;->locateInit()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1
.end method

.method public getCreatingShortcutFromAppList()Z
    .locals 1

    .prologue
    .line 169
    iget-boolean v0, p0, Lcom/nemustech/regina/Intercepter;->mCreatingShortcutFromAppList:Z

    return v0
.end method

.method public getSecretPointChecker()Lcom/nemustech/regina/SecretPointChecker;
    .locals 1

    .prologue
    .line 153
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSecretPointChecker:Lcom/nemustech/regina/SecretPointChecker;

    return-object v0
.end method

.method public isLongClick()Z
    .locals 1

    .prologue
    .line 157
    iget-boolean v0, p0, Lcom/nemustech/regina/Intercepter;->mLongPressMode:Z

    return v0
.end method

.method public isPendingActionUpEvent()Z
    .locals 1

    .prologue
    .line 161
    iget-boolean v0, p0, Lcom/nemustech/regina/Intercepter;->mPendingActionUpEvent:Z

    return v0
.end method

.method public isTouchable()Z
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 190
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    if-nez v1, :cond_0

    .line 191
    const-string v1, "Intercepter"

    const-string v2, "isTouchable returns false since mMainActivity is null"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    move v1, v3

    .line 199
    :goto_0
    return v1

    .line 194
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v0

    .line 195
    .local v0, world:Lcom/nemustech/tiffany/world/TFWorld;
    if-nez v0, :cond_1

    .line 196
    const-string v1, "Intercepter"

    const-string v2, "isTouchable returns false due to null world"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    move v1, v3

    .line 197
    goto :goto_0

    .line 199
    :cond_1
    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->isLocked()Z

    move-result v1

    if-nez v1, :cond_2

    const/4 v1, 0x1

    goto :goto_0

    :cond_2
    move v1, v3

    goto :goto_0
.end method

.method public log()V
    .locals 1

    .prologue
    .line 1526
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->printWorldState()V

    .line 1527
    return-void
.end method

.method public resetSelectedElement()V
    .locals 4

    .prologue
    .line 239
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v0, :cond_3

    .line 240
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    monitor-enter v0

    .line 241
    :try_start_0
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    instance-of v1, v1, Lcom/nemustech/regina/ElementReginaWidget;

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    instance-of v1, v1, Lcom/nemustech/regina/ElementAndroidWidget;

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    instance-of v1, v1, Lcom/nemustech/regina/ElementShortcut;

    if-eqz v1, :cond_2

    .line 244
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v1}, Lcom/nemustech/regina/Element;->isFailedArrange()Z

    move-result v1

    if-eqz v1, :cond_4

    .line 245
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceControlBtn()Lcom/nemustech/regina/ElementWorkspaceControlBtn;

    move-result-object v1

    iget-object v2, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v2}, Lcom/nemustech/regina/Element;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/regina/ElementWorkspaceControlBtn;->removeElementInWorkspace(Lcom/nemustech/regina/RGWorkspace;Lcom/nemustech/regina/Element;)V

    .line 254
    :cond_1
    :goto_0
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    .line 256
    :cond_2
    monitor-exit v0

    .line 258
    :cond_3
    return-void

    .line 248
    :cond_4
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v1}, Lcom/nemustech/regina/Element;->locateInit()V

    .line 249
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

    if-eqz v1, :cond_1

    .line 250
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    iget-object v2, p0, Lcom/nemustech/regina/Intercepter;->mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/Element;->setWorkspace(Lcom/nemustech/regina/RGWorkspace;)V

    .line 251
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mWidgetMovingStartWorkspace:Lcom/nemustech/regina/RGWorkspace;

    iget-object v2, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/RGWorkspace;->attachElement(Lcom/nemustech/regina/Element;)Z

    goto :goto_0

    .line 256
    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public setCreatingShortcutFromAppList(Z)V
    .locals 0
    .parameter "value"

    .prologue
    .line 165
    iput-boolean p1, p0, Lcom/nemustech/regina/Intercepter;->mCreatingShortcutFromAppList:Z

    .line 166
    return-void
.end method

.method public setDebugBound(ZLcom/nemustech/regina/RGWorkspace;)V
    .locals 0
    .parameter "show"
    .parameter "currentWorkspace"

    .prologue
    .line 1672
    iput-boolean p1, p0, Lcom/nemustech/regina/Intercepter;->mDebugBound:Z

    .line 1673
    return-void
.end method

.method public setElementVisibilityWorkspace(II)V
    .locals 6
    .parameter "wsIndex"
    .parameter "visibility"

    .prologue
    .line 1458
    iget-object v4, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v4

    iget-object v5, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v5

    invoke-virtual {v4, v5, p1}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceView(II)Lcom/nemustech/regina/WorkspaceView;

    move-result-object v3

    .line 1460
    .local v3, ws2d:Lcom/nemustech/regina/WorkspaceView;
    invoke-virtual {v3}, Lcom/nemustech/regina/WorkspaceView;->getChildCount()I

    move-result v0

    .line 1461
    .local v0, cnt:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-ge v1, v0, :cond_0

    .line 1462
    invoke-virtual {v3, v1}, Lcom/nemustech/regina/WorkspaceView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    .line 1463
    .local v2, v:Landroid/view/View;
    invoke-virtual {v2, p2}, Landroid/view/View;->setVisibility(I)V

    .line 1461
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 1465
    .end local v2           #v:Landroid/view/View;
    :cond_0
    return-void
.end method

.method public setFrontSelectedElement()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 1531
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    instance-of v1, v1, Lcom/nemustech/regina/ElementShortcut;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v1}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFObject;->getParentHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v1

    if-nez v1, :cond_0

    .line 1532
    new-instance v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v0, v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>(Z)V

    .line 1533
    .local v0, dummyHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 1534
    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    .line 1535
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v1}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFObject;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1536
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mSelectedElement:Lcom/nemustech/regina/Element;

    invoke-virtual {v1}, Lcom/nemustech/regina/Element;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFObject;->detachFrom(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1537
    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->detachFrom(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 1539
    .end local v0           #dummyHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    :cond_0
    return-void
.end method

.method public setMainActivity(Lcom/nemustech/regina/ReginaLauncher;)V
    .locals 2
    .parameter "mainActivity"

    .prologue
    .line 1468
    iput-object p1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    .line 1469
    new-instance v0, Lcom/nemustech/regina/ImagePlater;

    invoke-direct {v0, p1}, Lcom/nemustech/regina/ImagePlater;-><init>(Lcom/nemustech/regina/ReginaLauncher;)V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mImagePlater:Lcom/nemustech/regina/ImagePlater;

    .line 1470
    invoke-virtual {p1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mReginaPref:Lcom/nemustech/regina/ReginaPreference;

    .line 1471
    invoke-static {p1}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mResCare:Lcom/nemustech/regina/ResourceCare;

    .line 1473
    new-instance v0, Lcom/nemustech/regina/SecretPointChecker;

    invoke-direct {v0, p1, p0}, Lcom/nemustech/regina/SecretPointChecker;-><init>(Landroid/content/Context;Landroid/view/View;)V

    iput-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSecretPointChecker:Lcom/nemustech/regina/SecretPointChecker;

    .line 1474
    iget-object v0, p0, Lcom/nemustech/regina/Intercepter;->mSecretPointChecker:Lcom/nemustech/regina/SecretPointChecker;

    new-instance v1, Lcom/nemustech/regina/Intercepter$4;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/Intercepter$4;-><init>(Lcom/nemustech/regina/Intercepter;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/SecretPointChecker;->setOnCheckPassListener(Lcom/nemustech/regina/SecretPointChecker$OnCheckPassListener;)V

    .line 1491
    return-void
.end method

.method public setTouchable(Z)V
    .locals 3
    .parameter "value"

    .prologue
    .line 174
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    if-nez v1, :cond_0

    .line 175
    const-string v1, "Intercepter"

    const-string v2, "setTouchable ignored since mMainActivity is null"

    invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 187
    :goto_0
    return-void

    .line 178
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/Intercepter;->mMainActivity:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v0

    .line 179
    .local v0, world:Lcom/nemustech/tiffany/world/TFWorld;
    if-nez v0, :cond_1

    .line 180
    const-string v1, "Intercepter"

    const-string v2, "setTouchable ignored due to null world"

    invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 183
    :cond_1
    if-eqz p1, :cond_2

    .line 184
    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->unlock()V

    goto :goto_0

    .line 186
    :cond_2
    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->lock()V

    goto :goto_0
.end method
